Groovy web console

subscribe to the feed Subscribe
to this
site

Untitled

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def text = "ExtOAM900 "
def text2 = "ExtOAM900:"
def key = "ExtOAM"
if(text =~ /${key}\d{1,4}[\s|\:]/ && text2 =~ /${key}\d{1,4}[\s|\:]/){
   println("ok")
}
else{
 println("nope")
}