Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 2 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 3 days 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