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:
test@example.com +555 +blabla +@gmail.com
It must return: test@example.com
2) And if I have this one:
555 +@gmail.com +test@example.com
I want to get: @gmail.com
What I tried was \b.*@.*\b