Groovy web console

subscribe to the feed Subscribe
to this
site

SPLITFunction

Published 2 months ago by tst with tags tst
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def aliasName = "alias                 UIM:NAGIOS-TEST-WEBIO2;"

//aliasName = aliasName.substring(aliasName.indexOf(":")+1,aliasName.indexOf(";"));
aliasName = aliasName.split(":")[1].replace(";","");
println aliasName;