Groovy web console

subscribe to the feed Subscribe
to this
No bueno (via #groovywebconsole)
tweet this snippet Tweet

No bueno

Published 11 months ago by Aaron Dunlap with tags matcher regex
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def data = """
Vlan617          YES NVRAM  administratively down down    
Vlan618          YES manual up                    up      

def vlanregex = ~/(Vlan617)/;
def vlanmatcher = data =~ vlanregex;
println vlanmatcher.matches();