This content has been marked as final.
Show 1 reply
-
1. Re: Utilization of Regular Expression in Java Script Task
marcj Mar 26, 2014 11:19 AM (in response to marcj)OK, after trying several hours and a desparate posting in this forum, it just took me 30 minutes more to solve the issue:
String in_bic = (String)kcontext.getVariable("BIC");
if (in_bic.matches("([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$")) {
kcontext.setVariable("validBIC", true);
}
else {
kcontext.setVariable("validBIC", false);
}