-
Ctrl键
+
H
-
找到什么:
<texttool\b[^>]*?\brect="55,306,319,23"(?:(?!<texttool\b).)*</texttool>
-
替换为:
LEAVE EMPTY
-
检查火柴盒
-
检查包裹
-
检查正则表达式
-
检查
. matches newline
-
全部替换
说明:
<texttool\b # open tag
[^>]*? # 0 or more any character that is not >, not greedy
\brect="55,306,319,23" # literally
# Tempered greedy token
(?: # start non capture group
(?!<texttool\b) # negative lookahead, make sure we haven't same tag
. # any character
)* # end group, may appear 0 or more times
</texttool> # end tag
鉴于:
<grouptool id="881" rect="20,576,456,141">
<imagetool id="882" rect="349.15240478515625,581.5066528320312,111.22747039794922,132.8365936279297">
<toolstroke WIDTH="1.0" CAP="2" JOIN="2" MITER="0.0" />
<bordercolor />
<image name="head-set-md.png" type="CLIPART" size="20419" w="252" h="300" CRC="3224584205" />
</imagetool>
<texttool id="884" rect="30,584,214,31">
<toolstroke />
<toolcolor />
<font style="3" size="24" />
<Text>Got Audio Problems?</Text>
</texttool>
<texttool id="885" rect="55,306,319,23">
<toolstroke />
<toolcolor />
<font style="2" size="18" />
<Text>Note: Audio problems can be caused</Text>
</texttool>
<imagetool id="886" rect="36.17853927612305,631.7913818359375,262.9012756347656,24.34532356262207">
<toolstroke WIDTH="1.0" CAP="2" JOIN="2" MITER="0.0" />
<bordercolor />
<image name="unknown.png" type="CLIPART" size="1777" w="260" h="24" CRC="2321804736" />
</imagetool>
<texttool id="887" rect="55,306,319,23">
<toolstroke />
<toolcolor />
<font style="2" size="18" />
<Text>by a weak/spotty internet connection.</Text>
</texttool>
<rectangletool id="888" rect="249.5330505371093,627.7338256835938,30.33476448059082,31.446043014526367">
<toolstroke WIDTH="4.0" />
<toolcolor RGB="52224" />
<fillcolor RGB="16777215" ALPHA="0" />
</rectangletool>
</grouptool>
结果举例如下:
<grouptool id="881" rect="20,576,456,141">
<imagetool id="882" rect="349.15240478515625,581.5066528320312,111.22747039794922,132.8365936279297">
<toolstroke WIDTH="1.0" CAP="2" JOIN="2" MITER="0.0" />
<bordercolor />
<image name="head-set-md.png" type="CLIPART" size="20419" w="252" h="300" CRC="3224584205" />
</imagetool>
<rectangletool id="883" rect="20,576,455.0214538574219,141">
<toolstroke />
<toolcolor />
<fillcolor RGB="16777215" ALPHA="0" />
</rectangletool>
<imagetool id="886" rect="36.17853927612305,631.7913818359375,262.9012756347656,24.34532356262207">
<toolstroke WIDTH="1.0" CAP="2" JOIN="2" MITER="0.0" />
<bordercolor />
<image name="unknown.png" type="CLIPART" size="1777" w="260" h="24" CRC="2321804736" />
</imagetool>
<rectangletool id="888" rect="249.5330505371093,627.7338256835938,30.33476448059082,31.446043014526367">
<toolstroke WIDTH="4.0" />
<toolcolor RGB="52224" />
<fillcolor RGB="16777215" ALPHA="0" />
</rectangletool>
</grouptool>
屏幕截图: