Discussion

Aaseya IT Services
Aaseya IT Services
SA
Aaseya IT Services
Posted: Mar 28, 2019
Last activity: Mar 29, 2019
Last activity: 29 Mar 2019 7:09 EDT
How to write an edit validate rule to validate text entered to only arabic with Space.
Hello Everyone,
This code will validate text entered to only Arabic with Space.
boolean retval = false;
if (theValue!= null ) {
java.util.regex.Pattern p =
java.util.regex.Pattern.compile("^[\u0621-\u064A ]*$");
java.util.regex.Matcher m= p.matcher(theValue);
retval = m.matches();
}
theProperty.addMessage("Enter a valid value");
return retval;