Author: Wyerarch | Posted on: 8/18/2008 7:50:54 AM | Views : 499

Hi all,

I use the following regex to find a H1 tag, for example:

<h1>.*</h1>

How can this be adapted to find h1's, where users have put attributes like class, etc. I.e. how can i find the following section:

<h1 class="thisstyle">Some text to find</h1>

My regex above doesn't work for it (obviously). I tried the following, but no joy:

<h1([^>]+)>.*?(?=</h1>)

Can anyone help?

Thanks,

James.
...

Go to the complete details ...