Groovy web console

subscribe to the feed Subscribe
to this
site
Remove Trailing 0 (via #groovywebconsole)
tweet this snippet Tweet
this
script

Remove Trailing 0

Published 1 month ago by Stefan Glaum
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def re = "^([A-Z])0?([1-9][0-9]?)(.)([0-9]+)"
String t = 'A2.03'
println((t =~ re)[0][1..-1].join())