Hi There,
I have question about pattern matching. What I'm trying to do is replace any characters in a string that are not alphanumerics or spaces and these characters:
,.?!"-[]/'
I have this line going, it only replaces alphanumerics and spaces though:
$string = ereg_replace("[^[:space:]a-zA-Z0-9]", "", $string);
but that as far as I get without screwing it up. Any help?
I have question about pattern matching. What I'm trying to do is replace any characters in a string that are not alphanumerics or spaces and these characters:
,.?!"-[]/'
I have this line going, it only replaces alphanumerics and spaces though:
$string = ereg_replace("[^[:space:]a-zA-Z0-9]", "", $string);
but that as far as I get without screwing it up. Any help?