Regular Expressions 101

Community Patterns

Regex for mentions @username like twitter

0

Regular Expression
ECMAScript (JavaScript)

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

Description

no description available

Submitted by anonymous - 5 years ago