Groovy web console

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

test

Published 7 months ago by mike
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def failures = ["'Astro' team - operations-center-client on 2.107.3","'mike' mike 2.107.3"]
failures.each { failure ->
    println "failure -> " + failure
    def m
    if ((m = (failure =~ /'(.+?)'/))) {
        println "m->" + m
        println "m[0][1]->" + m[0][1]
        def match = m.group(1)
        println "match->" + match
    }
    else {
     println "shit!"
    }
}