Regular Expressions 101

Library entries

Remove empty HTML tags

Vote

-2

Regular Expression
pcre

/
<.[^>]*>(\s+|()|(&nbsp;)*|\s+(&nbsp;)*|(&nbsp;)*\s+|\s+(&nbsp;)*\s+)<\/.[^>]*>
/
ig

Description

Loading markdown...
Submitted by R. Sartorius - 8 years ago