Forum Moderators: open

Message Too Old, No Replies

Latin character regex

         

CodilX

2:37 pm on Apr 19, 2009 (gmt 0)

10+ Year Member



hi there,

i'm having troubles with my regex..

i have a name input field, and the regex for it is:

var first_nameRegex = /^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/;

how do i change it so that i would allow letters such as ą č ė ę į š ū ų and also in uppercase?

DrDoc

10:30 pm on Apr 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried just checking for
[[:alpha:]]
? Or, does that include too many?