I have this expression
\\b[A-Za-z]+\\b
If I give abc@de mnop, it matches abc, de and mnop
abc@de mnop
abc
de
mnop
\b means (?:(?. Which would match positions between letters and @.
\b
(?:(?. Which would match positions between letters and @.
@
You can write:
(?
(?!\S) is equivalent to (?=\s|$).
(?!\S)
(?=\s|$)