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 valid = (('A'..'Z') + ('0'..'9') + ('a'..'z') + '.-_/,').join()

def name = "my-test-instance-123!!??"

println(name.findAll { valid.contains(it) }.join())