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
/
(?<tagStart><[^>]+>)(?<text>[^<]+)(?<tagEnd><\/[^>]+>)
/
g
Input 1
1
New
- does reliably match unnested and strictly valid markup: # My name is Alan and I'm <span>an</span> <div class="someClass">artist</div>. - does not match any nested markup: # My name is Alan and I'm <span><em>an</em></span> <div><em>artist</em></div>.