Groovy web console

subscribe to the feed Subscribe
to this
site
findAllRegEx (via #groovywebconsole)
tweet this snippet Tweet
this
script

findAllRegEx

Published 1 month ago by izikp
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
a = 'abc9'

print true && a.findAll(~ /abc[1-3]/)

a = 'abc3'

print true && a.findAll(~ /abc[1-3]/)