Regular Expressions 101

Extract email client inserted reply line "On <DATE>, <SENDER> wrote:"

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^>(?:.|\s>)*<[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}>(?:.|\s)*?:
/
gm

Description

Email clients insert the "sender wrote" line to email replies.

Submitted by Vlad Burca