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
/
\[w:r\b(?:(?!\[w:r\b).)*?delete(?:(?!\[w:r\b).)*?\[\/w:r]
/
g
Input 1
New
I would like to have 3 matches, because there is 3 times a [w:r][/w:r] containing the "delete" occurence [w:p w:rsidR="00872256" w:rsidRDefault="00FC0031" w:rsidP="00B144EE"][w:r w:rsidRPr="00B144EE"][w:rPr][w:noProof][w:lang w:eastAsia="fr-FR"][/w:rPr][mc:AlternateContent][mc:Choice Requires="wps"][w:drawing][wp:anchor distT="0" distB="0" distL="114300" distR="114300" simplePos="0" relativeHeight="251657728" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="0DAEDE58" wp14:editId="08949822"][wp:simplePos x="0" y="0"][wp:positionH relativeFrom="column"][wp:posOffset]0[/wp:posOffset][/wp:positionH][wp:positionV relativeFrom="paragraph"][wp:posOffset]-310515[/wp:posOffset][/wp:positionV][wp:extent cx="2233930" cy="1656080"][wp:effectExtent l="0" t="3810" r="4445" b="0"][wp:wrapNone][wp:docPr id="1" name="Text Box 2"][wp:cNvGraphicFramePr][a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"][/wp:cNvGraphicFramePr][a:graphic xmlns:a="