Hi,
Since upgrading to php 5.3 i have a line of code on my site that is giving me a depreciated error. The line of code is as follows:
$data=eregi_replace(">"."[[:space:]]+"."<","><",$data);
I've got as far as knowing i need to change it from eregi_replace to preg_replace but i can't for the life of me work out where to put any backslashes etc, if any. Is there a formula for working this type of thing out? Every example i see has backslashes and $1's all over the place. Do i simply do this "/ and this /" after and before every double quote? Or is it not as simple as that? Things never are are they!
Please could an expert on here offer me any assistance. This is an important line of code(i think) so i didn't want to experiment as i would normally do, i need to get this right first time as i don't know what will happen if i get this wrong.
Cheers.