Regular Expressions 101

Clean empty tags from HTML tags incl. tags containing space(s)

Open Workspace
  • PCRE (Legacy)
  • Substitution
-3

Regular Expression

/
<([^>\s]+)[^>]*>(?:\s*(?:br \/>| |&nbsp;|&thinsp;|&ensp;|&emsp;|&#8201;|&#8194;|&#8195;)\s*)*<\/\1>
/
gm

Description

No description provided.

Submitted by Anonymous