SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
<([^\s]+)(\s[^>]*?)?(?<!/)>
It is similar to yours, but the last > must not be after a slash, and also accepts h1.
>
h1