Iam trying to search and replace with regular expression, but it is not working.
I have some html like so:
<p><b>Noten</b></p>
<p><b>somethingelse</b></p>
<p><b>random extra</b></p>
<p><b>something 3</b></p>
And want it like so:
<h2>Noten</h2>
<h2>somethingelse</h2>
<h2>random extra</h2>
<h2>something 3</h2>
But it how do i find all the right elements?
I only can find the ones without the spaces or numbers, like so:
<p><b>[a-z]*</b></p>
and i don’t know how to replace it so that the <p> and <b> tags change in <h2>
Test It
but I Recommend you to Use Dom and JQuery for do This It is more easier