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
/
---\n[\s\S]+?(?=\n---|$)
/
g
Input 1
1
New
--- event: outgoing HTTP response timestamp: 2021-10-06T08:15:28.212Z remoteAddress: "1.2.3.4" hostname: a.b.c.domain.com statusCode: 200 headers: content-length: 524 etc: ... body: "blabla (can be multiline and can contain anything)" --- event: outgoing HTTP response timestamp: 2021-10-06T08:15:28.212Z remoteAddress: "1.2.3.4" hostname: a.b.c.different.com statusCode: 200 headers: content-length: 524 etc: ... body: "blabla (can be multiline and can contain anything)" --- event: outgoing HTTP response timestamp: 2021-10-06T08:15:28.212Z remoteAddress: "1.2.3.4" hostname: 1.2.3.domain.com statusCode: 200 headers: content-length: 524 etc: ... body: "blabla (can be multiline and can contain anything)"
Substitution