Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
\B@\w+
"
gm
Input 1
an id: @username another id:@username not an id@username @username word@hello an id: @username1 another id:@username2 not an id@username3 an id: @username another id:@username not an id@username @username new thing @username