Matthew Nuzum wrote: >Hi, sorry to post the off topic, but this list is my greatest resource >with my current problem. > >I've created a management form for creating files in a CMS that I've >designed and I use a regular expression to prevent files with non-url >and non-cms friendly characters from being used. > >I've found that some of my international customers can't use certain >characters that they need, can someone suggest a change to my regular >expression that would allow this? > >Here's the regexp I use: >^[\w\s-]*$ > >Here's what I allow: characters (upper or lower case), numbers, space >(which gets converted to an underscore), hyphens and underscores. I >need to expand it to allow accented characters in languages such as >Polish, German, Spanish and Portuguese. > >Here are two words that don't work that should: Español Português > >Can anyone suggest a change that would allow an expanded list of >characters? > >
You may want to read up on this perl document, which should give you some clues how to allow for these characters: perldoc perllocale -- Regards, Kul http://akakul.co.uk/ Backup Solutions: http://camelbackup.com/ FREE Scripts: http://scripts.akakul.co.uk/ Get Summarizer; the Admin tool for Webalizer http://scripts.akakul.co.uk/summarizer/ _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers