Welcome to WebmasterWorld Guest from 188.8.131.52
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. :)