Help?use Regex that acceps both english and greek characters
Posted: Thu Jul 05, 2012 3:03 am
Hi I would like some help please if its possible.
I' m having a contact form in which the user submits his name. I use both in my javascript and php validation this regex:
/^[A-Z][A-Za-z.'\- ]+$/
for validatin the name, accepting only characters, whitespaces and - symbol. Although it works fine with english (latin characters), it doesn't work with greek. I want my regex to accept both english and greek characters, so when the user submits his name either in english either in greek it will "pass", if he enters any number or symbol like @,!,* etc (exept whitespaces, ' , -) fails.
Any help would be appreciated.
I' m having a contact form in which the user submits his name. I use both in my javascript and php validation this regex:
/^[A-Z][A-Za-z.'\- ]+$/
for validatin the name, accepting only characters, whitespaces and - symbol. Although it works fine with english (latin characters), it doesn't work with greek. I want my regex to accept both english and greek characters, so when the user submits his name either in english either in greek it will "pass", if he enters any number or symbol like @,!,* etc (exept whitespaces, ' , -) fails.
Any help would be appreciated.