Hi Dear,
please help me on the concern. I have one variable it must contains only 3 character not more than 3 char. How to do in webMethods can you please help on this.
Thanks in advance.
Hi Dear,
please help me on the concern. I have one variable it must contains only 3 character not more than 3 char. How to do in webMethods can you please help on this.
Thanks in advance.
Use Java Regex. Search on Google;
^\d{3}[a-zA-Z]{3}$
or
/\d*(?:[a-zA-Z]){3,}\d*/
Hi Hariom,
is it one to three characters or excactly three characters?
You can define some restrictions for the field:
for the first variant it will be “maxLength=3”, for second variant it will be “length=3”.
Additionally add a regex pattern as “[A-Za-Z]” to restrict it to contain just characters.
See RegEx documentation for pattern formats.
Regards,
Holger
Yep this should do the trick with regular expressions and make sure your branch is set to evaluate Labels to true for the sequence regex to work
HTH,
RMG
Another option: call pub.string:length and BRANCH on the result.
Yes if there is no constraint on that 3 chars can be numeric or alpha and so the above option will be best bet with no syntax issues
HTH,
RMG
You may also use Validate input by :