Regular Expressions 101

Community Patterns

sent from my <phone>

0

Regular Expression
Python

r"
sen[t|d] from( my| a)?(\w|'|\s)+?(smart|smartphone|mobile|iphone|windows|ipad|htc)( phone| device)?
"
i

Description

for catching phone generated message such as "sent from my"

Submitted by anonymous - 8 years ago