Regular Expressions 101

Community Patterns

Re Twitts

2

Regular Expression
ECMAScript (JavaScript)

/
RT(\A|\s)@(\w)+
/

Description

find retwitt hashtag on Twitters and add a label to highlight it.

Submitted by anonymous - 6 years ago