[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] OT: non-english compatible reg-exp
- Subject: [cobalt-developers] OT: non-english compatible reg-exp
- From: "Matthew Nuzum" <cobalt@xxxxxxxxxxxxx>
- Date: Wed Oct 9 11:29:06 2002
- Organization: Bearfruit.org
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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?
Matthew Nuzum
www.followers.net
matt@xxxxxxxxxxxxx