Hi everyone, I get an string from an filename, and then create an mysql table
using that filename. Since the rule is different, eg, a file name AA3bb.cc is
ok but it can't used as a mysql table's name. So that I will modify that file
name to AA3bb-cc. That means if any character in the filename !~
/[0-9a-zA-Z\-\_]/, then replace that character to hyphen "\-". Could anyone
hlep me to code an perl regular expression to "replace that character to hyphen
\-":if ($filename !~ /[0-9a-zA-Z\-\_]/){replace that character to hyphen "\-"}
Thanks
Bairu
_________________________________________________________________
Win a Hotmail Go-Kart to race at Bathurst. Enter today!
http://www.livelife.ninemsn.com.au/compIntro.aspx?compId=4602