Groovy web console

subscribe to the feed Subscribe
to this
site

Split a space-separated string

Published 4 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
s = "what a mess"

def chunks = s.split(/\s+/)