Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(^|\s)@([A-z]+)\b
/
gi

Description

Useful for pulling user mentions out of markdown.

Submitted by anonymous - 9 years ago