Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
<span id=pink>.*?<\/span>(.*?)(?=<span|$)
/
gs
Input 1
1
New
<span id=pink>some short text</span> more text that can be a few lines <span id=pink>again a short text</span> More text that's abiding the same logic <span id=pink>Repeat</span>...(more of these)
Substitution