I am trying to construct a regular expression which parses mentions. e.g.
@aaa @bbb@ccc @dddd @eeee
it should match only aaa, dddd and eeee but not bbb@ccc
I have tried the following regular expression but it fails:
/(?:^|\s)@(\S+)/g
an example can be found here: https://regexr.com/3h9o5