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
/
(<[a-z]+\stype="[A|I|1]")(?:[^>]+)?
/
gm
Input 1
1
New
<ol type="A" lang="en-CA" style="margin-bottom: 0in; line-height: 100%"> <li type="A" s="something"><span>Text</span></li> <li><span>More text</span></li> </ol> <ol type="I" style="font-weight: bold;"> <li><span>Text</span></li> <li><span>More text</span></li> </ol> <ol type="1" style="font-weight: bold;"> <li type="I" another="attribute"><span>Text</span></li> <li><span>More text</span></li> </ol>
Substitution
$1
<ol type="A" lang="en-CA" style="margin-bottom: 0in; line-height: 100%"> <li type="A" s="something"><span>Text</span></li> <li><span>More text</span></li> </ol> <ol type="I" style="font-weight: bold;"> <li><span>Text</span></li> <li><span>More text</span></li> </ol> <ol type="1" style="font-weight: bold;"> <li type="I" another="attribute"><span>Text</span></li> <li><span>More text</span></li> </ol>