Greetigns,
I am currently trying to replace an html tag with “” and I can’t seem to get this expression to work.
Sample Data:
</span><span class="ni2y">209</span>.<span
Expected Output:
</span>.<span
Preg Replace:
$pLineTemp = '</span><span class="ni2y">209</span>.<span';
$pClassName = 'ni2y';
$pClassReplace = "(.span class.." . $pClassName . "..\\d+..span.)";
$pLineTemp = preg_replace($pClassReplace, '', $pLineTemp);
Any ideas on what I am doing wrong?
Thank you!
n/m, issue was with how I was building my result string, I needed to take it out of the loop, thanks!