regular expression to extract @name symbols from tweet

Posted by Joey on Stack Overflow See other posts from Stack Overflow or by Joey
Published on 2010-03-02T13:15:02Z Indexed on 2010/03/27 9:53 UTC
Read the original article Hit count: 176

Filed under:

Hello All,

I would like to use regular expression to extract only @patrick @michelle from the following sentence:

@patrick  @michelle we having diner @home tonight do you want to join?

Note: @home should not be include in the result because, it is not at beginning of the sentence nor is followed by another @name.

Any solution, tip, comments will be really appreciated.

© Stack Overflow or respective owner

Related posts about regex

Related posts about python