Regular Expressions 101

Library entries

Match HTML Tags

Vote

1

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by anonymous - a year ago