Skip Navigation

The best answer on StackOverflow: Using RegEx to parse HTML

stackoverflow.com RegEx match open tags except XHTML self-contained tags

I need to match all of these opening tags: <p> <a href="foo"> But not self-closing tags: <br /> <hr class="foo" /> I came up with this and wanted to make

RegEx match open tags except XHTML self-contained tags
36

You're viewing a single thread.

36 comments
You've viewed 36 comments.