RE: [PHP] regex for cleaning up username

2001-07-22 Thread Dave
Am partially successfull after taking a further look into things. the following (while ugnly) correctly catches everything except the \ character for some reason. ideas? if(preg_match(/['.' ,!@#$%\^*()+=\/\\:;?|]/',$MyString)){ # echo error, character found } -Original

Re: [PHP] regex for cleaning up username

2001-07-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dave) wrote: Am partially successfull after taking a further look into things. the following (while ugnly) correctly catches everything except the \ character for some reason. ideas? if(preg_match(/['.'