Groovy web console

subscribe to the feed Subscribe
to this
site

replace-version-postfix

Published 1 week ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def version  = "4.1.1-ALF5.2-SNAPSHOT"
def numVersion = (version =~ /^(\d+(\.\d+)*).+/)[0][1];  

println numVersion