Page 1 of 1

regular expression help

Posted: Mon Jul 01, 2002 9:53 am
by chris12295
Is there a fast way to replace all non-alphanumeric characters with a blank space?

Posted: Mon Jul 01, 2002 11:35 am
by volka
there is a character-class :alpha:
and you may also use [A-Za-z0-9] or [A-Za-z0-9À-ÖØ-öø-ÿ]

Posted: Mon Jul 01, 2002 10:29 pm
by sam

Code: Select all

$done = ereg_replace("ї^ї:alnum:]]","",$raw);
Cheers Sam