Forum Moderators: coopster
What type of statement could I use? Say for example I want to replace double spaces ( ) that occur after everything except periods (. ) .
Obviously preg_match('/!. /') doesn't work, so what else can I do?
$pattern = "/[^.]*\s\s/";
$new_string = [url=http://www.php.net/preg_replace]preg_replace[/url]($pattern, "", $string);
Try something along those lines. :)