Categories
Matches a valid HTML tag.
Contributed by @itsbrunodev
<(?<tag>[a-z]+)(?<attribute>\s+[a-z-]+="[^"]*")*\s*>(?<content>.*?)<\/\1>
<!-- Valid HTML Tags --> <div>Content</div> <a href="#">Link</a>