Regular Expressions 101

Library entries

匹配HTML标签

Vote

0

Regular Expression
javascript

/
<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[\\^'">\\s]+))?)+\s*|\s*)\/?>
/
g

Description

Loading markdown...
Submitted by anonymous - 4 years ago