Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^\s*\bOn\b[\s\S]*\nwrote:[\s\S]*$
/
gm
Input 1
1
This is my reply On Wed, Jun 23, 2021 at 3:22 PM A User (User) <user@mygmailaccount.com> wrote: > hello this is my initial email. > >
Extraction
This is my reply On Wed, Jun 23, 2021 at 3:22 PM A User (User) <user@mygmailaccount.com> wrote: > hello this is my initial email. > >