Groovy web console

subscribe to the feed Subscribe
to this
site

matcher-bool2

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def s = "zzzaaazzzaaa"
println ((matcher = s=~/zzz(aaa)/) && matcher[0][1] == 'aaa')
println ((matcher = s=~/zzz(bbb)/) && matcher[0][1] == 'aaa')