I have an html file... this file has the formula:
<body>
<p class="Title-P">Compiler</p>
<p class="Heading1-P">kdnkls:</p>
<p class="Normal-P">dsf</p>
<p class="ListParagraph-P">kjsksf</p>
<p class="ListParagraph-P">dsfsf</p>
<p class="ListParagraph-P">sfsfsf</p>
<p class="Heading2-P">fsfs:</p>
</body>
what is the suitable regex to replace the tags:
<p class="Title-P>foo</p>
with<h1>foo</h1>
<p class="Heading1-P">kdnkls:</p>
with<h2> kdnkls: </h2>
<p class="Normal-P>foo</p>
with<p> foo </p>
- etc...
I'm using preg_replace function in php which takes as arguments: pattern and replacement...