I am looking for a regular expression that will extract the first word containing the character "@" on a given string. Additionally, it must not return the character "+" that prefixes words (except the first).
1) If I have the following string:
[email protected] +555 +blabla [email protected]
It must return: [email protected]
2) And if I have this one:
555 [email protected] [email protected]
I want to get: @gmail.com
What I tried was \b.*@.*\b