Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

To remove @recipient and other funny characters

Submitted by anonymous - 5 years ago