Groovy web console

subscribe to the feed Subscribe
to this
site

regext text

Published 2 months ago by pipone
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def pattern = "^(\\d{2})(\\w+)(\\d+)\\.(\\d+)\$"
def branchName = "21CGCR1.0"
def codegrouping = (branchName =~ pattern)
print codegrouping[0][2]