Groovy web console

subscribe to the feed Subscribe
to this
site

finding number in string without regex

Published 1 month ago by Tabassum with tags finding number in string without regex
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def string = "https://www.testme.com:8080"
def output = string.findAll(/\d+/)
println output