Groovy web console

subscribe to the feed Subscribe
to this
site

Extract string suffix

Published 6 months ago by vmj
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
final s = "abc12345"
final f = s[-5..-1]

println f