PHP regex alphanumeric, delimited by non-alpha numeric
I would like to get all occurrences
@something
limited to any non-alpha numeric character or space.
I tried
[^ A-Za-z0-9 \ c] @ (\ S) [^ A-Za-z0-9]
but it retains the space after the word.
I would be glad for any help, thanks.
Edit: So the question will be clear, I want to get a match from
Line start @ word1 something @ word2, @ word3
all '@ word1', '@ word2', '@ word3'
+3
source to share
2 answers