I have the below html as a text string
<p>I'll write a H1 below</p>
<h1>Hi I'm H1</h1>
<p>Last p</p>
What i want to do is see if 'I'm H1' exists in the h1 tag - curious as to what the regex above would be so that it returns true
P.S: Even if it contained <h1>I'm H1 buddy</h1> it should return true so essentially in a h1 tag, if it contains a particular string, in the above case 'I'm H1', it should output true
\<h1\>.(I'm H1).\</h1\>. It will work if the whole thing is a string.\<h1\>.*?(I'm H1).*?\<\/h1\>