Re: modify filename by using regular expression

2008-09-23 Thread John W. Krahn
aa aa wrote: Hi everyone, Hello, 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 cha

modify filename by using regular expression

2008-09-23 Thread aa aa
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