Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
HTML tags and attributes
Open Workspace
PCRE (Legacy)
Substitution
Created 2018-12-28 12:51
0
Regular Expression
/
<
(?:
(?<tag>
[^
\/
<>
\s
]
+
)(?:
\s
+
(?<attr>
[^
=>
]
*
)
="
(?<value>
[^
"
]
*
)
"
)*
|
\/
?
(?<close>
(?&tag)
)
\/
?
)
>
/
gi
Description
No description provided.
Submitted by
Anonymous