Welcome to WebmasterWorld Guest from 126.96.36.199
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?
joined:Nov 12, 2005
$pattern = "/[^.]*\s\s/";
$new_string = [url=http://www.php.net/preg_replace]preg_replace[/url]($pattern, "", $string);
Try something along those lines. :)