Groovy web console

subscribe to the feed Subscribe
to this
site

Extract string suffix

Published 2 years ago by vmj
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
final s = "abc12345"
final f = s[-5..-1]

println f