Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
Diagnostic-Code[\s\S]*?[\r\n]{2}
/
g
Test String
New
... Status: 5.0.0 Diagnostic-Code: X-Postfix; skalio.com *this* *should* *be included too* --EA7634814EFB9.1516804532/mail.example.com Content-Description: Undelivered Message ...