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
/
<result1>(.*?)<result1>(?:(?:.(?!<result1>))*?<result>(.*?)<result>)?
/
igs
Input 1
1
New
dsgssgdfgdsfg <result1>A1<result1> anythingiwith<>and"234and newlinesandsoon <result>B1<result> againanything dsgssgdfgdsfg <result1>A2<result1> anythingiwith<>and"234and newlinesandsoon againanything dsgssgdfgdsfg <result1>A3<result1> anythingiwith<>and"234and newlinesandsoon <result>B3<result> againanything
Extraction