i\'m not very firm with regular Expressions, so i have to ask you:
How to find out with PHP if a string contains a word starting with @ ??
e.g. i have a string l
Just incase this is helpful to someone in the future
/((?
This will match any word containing alphanumeric characters, starting with "@." It will not match words with "@" anywhere but the start of the word.
Matching cases:
@username
foo @username bar
foo @username1 bar @username2
Failing cases:
foo@username
@username$
@@username