Groovy web console

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

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                1.1.1.1    YES NVRAM  administratively down down    
Vlan618                2.2.2.2    YES manual up                    up      
"""

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