[ciapug] preg_replace question.

Chris Hettinger ciapug@cialug.org
Tue, 07 Sep 2004 13:17:32 -0500


I had this working at one point, but now it's not... not sure what's 
changed.


$string = '123 45 6789'

// Should remove 'any whitespace' character
$string2 = preg_replace("/\s/", "", $string);

echo $string2
// Should be 123456789.
// Im getting 123 45 6789


However, recently, this is NOT doing anything. Did I mess up the syntax?

-ch