Groovy web console

subscribe to the feed Subscribe
to this
site

Split with a single number

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String numbers = "3536262636"

assert numbers.split(",") == ["3536262636"]