Regular Expressions 101

Community Patterns

Filter for Twitter Posts

0

Regular Expression
Python

r"
(?!.?@.+)\s[\w\,\.\!\'\(\)\#]+
"
gm

Description

To remove @recipient and other funny characters

Submitted by anonymous - 5 years ago