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
/
(<[^<>\/]+>)\s+|\s+(<\/[^<>]+>)
/
gm
Input 1
1
<b1> <c> "The Modern Amphibians" </c> </b1> Modern <b>amphibians </b> have a simplified <key2>anatomy </key2> compared to their ancestors due to <i> paedomorphosis</i>. Caused by two evolutionary trends: <b2> miniaturization </b2> and an unusually. Don’t think that this term’s work will be <key23> a piece of cake </key23>
Extraction
<b1> <c> "The Modern Amphibians" </c> </b1> Modern <b>amphibians </b> have a simplified <key2>anatomy </key2> compared to their ancestors due to <i> paedomorphosis</i>. Caused by two evolutionary trends: <b2> miniaturization </b2> and an unusually. Don’t think that this term’s work will be <key23> a piece of cake </key23>