I'm building an expression to replace the first   in a group of spaces with a regular space " " followed by the same number of  .
This is what I have now
preg_replace("/ ( ?)*/is", " $1", $string);
it works fine when it's a one or two  , but if there are more than 2 it removes any additional ones. I'm not expert at regular expressions and I would greatly appreciate some help on this one. Thanks in advance.