I am using this snippet of a javascript code to validate alphabetic characters
case "alpha_s":
{
ret = TestInputType(objValue, "([^A-Za-z\\s])",
strError, objValue.name + ": Only alphabetic characters and space
allowed ");
break;
}
But i need the code to be able to validate Greek characters too. I tried doing this:
case "alpha_s":
{
ret = TestInputType(objValue, "([^A-Za-z\\u0391-\\u03C9\\s])", strError, objValue.name + ": Only alphabetic characters and space allowed ");
break;
}
But it had no result.