Groovy web console

subscribe to the feed Subscribe
to this
site

Untitled

Published 1 month ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def prodno = 'CXP123_XLF'
def prodno2 = 'CXP123_DC'
def exp =  /^([A-Z0-9_].*[XLF|DC].*)?$/
println prodno ==~ exp
println prodno2 ==~ exp