keeping the dot

From: Date: Mon, 04 Mar 2002 10:00:07 +0000
Subject: keeping the dot
Groups: php.general 
Request: Send a blank email to php-general+get-87061@lists.php.net to get a copy of this message
Try thinking???? :? :? Just add a dot. $filename = ereg_replace("[^a-zA-Z0-9.]", "",$filename); ============================= I have a file that is being uploaded, but I need to remove all the characters in the filename except letters, numbers, and the '.' (dot). Example would be 'where_i_go.mp3' removing the '_' to get 'whereigo.mp3'. Below is what I have to remove the none letters and numbers, but it also takes away the '.' (dot). How can I make the code below keep the dot? $filename = ereg_replace("[^a-zA-Z0-9]", "",$filename); Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________________ MSN Foto's is de eenvoudigste manier om je foto's te delen en af te drukken: http://photos.msn.nl/Support/WorldWide.aspx

« previous php.general (#87061) next »