Hello I am trying to replace every set of two whitespaces with so that long sets of white spaces are held, but not one whitespace which may be used between HTML tags. I have code like this:
$value = ereg_replace("(\x20\x20){2,2}", ' ', $value);
It seems to cut off the last two spaces every time I run it so it would go from 8 to 6 to 4 etc...