RegEx: h1 followed by h2 without p in between
- by voodoo555
Hey everyone,
I need a regular expression to find out whether or not a h1 tag is followed by a h2 tag, without any paragraph elements in between. I tried to use a negative lookahead but it doesn't work:
<h1(.+?)</h1>(\s|(?!<p))*<h2(.+?)</h2>