Groovy web console

subscribe to the feed Subscribe
to this
site
Split by empty string (via #groovywebconsole)
tweet this snippet Tweet
this
script

Split by empty string

Published 4 weeks ago by dariodf with tags split empty string
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
options = "xGZ"
println options.split("")
println options.split("(?!^)")