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
/
<id:\d+\/?>[\s\S]*?(?=<id:\d+\/?>|$)
/
g
Input 1
1
New
<id:7/>Any text over here<id:8>Another text here (variable length and possibly including new line chars)<id:10>Yet another variable length string with a newline in between.