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
/
<span class="verse" id="V[[:digit:]]+">([[:digit:]])+? <\/span>(.+?)(?=<span class="verse"|<\/div>)
/
gm
Input 1
1
New
<div class='p'> <span class="verse" id="V1">1 </span>In the beginning God created the heaven and the earth. <span class="verse" id="V2">2 </span>And the earth was without form, and void; and darkness <span class='add'>was</span> upon the face of the deep. And the Spirit of God moved upon the face of the waters. </div>
Extraction
<div class='p'> <span class="verse" id="V1">1 </span>In the beginning God created the heaven and the earth. <span class="verse" id="V2">2 </span>And the earth was without form, and void; and darkness <span class='add'>was</span> upon the face of the deep. And the Spirit of God moved upon the face of the waters. </div>