How call a variable in "edit Validate"?
I would like call a variable it have
String variableCRI="^[A-Z|a-z]{2}[0-9]{2}-[0-9]{5}-[0-9]{4}$";
or
String variableNIC="^[0-9]{4}-[0-9]{2}-[0-9]{4}$";
so, if i would like get the variable of Costa Rica i introduce the next code:
return java.util.regex.Pattern.matches(variableCRI,theValue);
but if is Nicaragua.
return java.util.regex.Pattern.matches(variableNIC,theValue);
sorry if i have a poor technical language , i began recently.
Best regards