RE: [PHP] string validating

2003-03-12 Thread John W. Holmes
> im reading in a string from a database, this string will become a file > name. > so i need to strip everything BUT lowercase a-z and 0-9. well im > strtolower > so i dont need to worry about upper case. blank spaces get replaced with _ $filename = preg_replace("/[^a-z0-9]/","_",$data); Replace

[PHP] string validating

2003-03-12 Thread Martin Dziura
hi, im sort of new to php, and i have the following question. im reading in a string from a database, this string will become a file name. so i need to strip everything BUT lowercase a-z and 0-9. well im strtolower so i dont need to worry about upper case. blank spaces get replaced with _ i wa