Groovy web console

subscribe to the feed Subscribe
to this
site

Bee Regex

Published 2 months ago by am
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def BEE_REGEX = ~/^[bB][1-9][0-9]+$/
final String beeName = '  b 30 '.replaceAll("\\s","")

if (beeName ==~ BEE_REGEX) {
    print 'bob'
}