Groovy web console

subscribe to the feed Subscribe
to this
site

pattern match

Published 5 months ago by Ram with tags addon single version
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def addonVersion = 'ARBCI00000'
if (addonVersion =~ /[^\/ARBCI]*[0,1,2,3,4]/) {
    println addonVersion 
} else {
    println "ARBCI00005"
}