Regular Expressions 101

Community Patterns

1

test

ECMAScript (JavaScript)
test
Submitted by test - 9 years ago

Regex for mentions @username like twitter

0

Regular Expression
ECMAScript (JavaScript)

/
(?:^|[\W])(@\w{1,20})(?:$|[\W])
/
gm

Description

Loading markdown...
Submitted by anonymous - 5 years ago