Groovy Regex headache
Trying to match items that start with TSnnnnnn or Doc-nnnnnn using:
if (itemNumber ==~ /^Doc|TS/) {....}
I cant see anything worng with my regular expression, and:
if (strPart ==~ /[A-Q a-q S-Z s-z]/) {....}
works elswhere im my script, so my syntax appears OK. Any insights appriciated.
Adrian
if (itemNumber ==~ /^Doc|TS/) {....}
I cant see anything worng with my regular expression, and:
if (strPart ==~ /[A-Q a-q S-Z s-z]/) {....}
works elswhere im my script, so my syntax appears OK. Any insights appriciated.
Adrian
0