question to php programmers?

Dead Dead

New member
$str=preg_replace('#[^a-zA-Z0-9?-??-?]#','',$str);
?-??-? <-- this is the same as a-zA-Z, just in russian. As you already guessed i wanted to make $str only contain russian and english alphabet and digits. So what's wrong? and if you know another way of doing the same in php i would only apreciate.
Thanks.
preg_replace('#[^a-zA-Z0-9?-??-?]#','',$str);
 
Back
Top