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
/
(<span class='customer)(' id='phone[^>]*>)([^<]+)
/
g
Input 1
1
New
GIVEN: <div> <span class='customer' id='phone$0'>Home</span> <br/> <span class='customer' id='phone$1'>Business</span> <br/> <span class='customer' id='phone$2'>Mobile</span> </div> DESIRED: <span class='customer NewClass' id='phone$1'>Organization</span>
Extraction