Groovy web console

subscribe to the feed Subscribe
to this
site

groovy regex

Published 1 week ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def branchName = """JenkinsfileCI
ad_profile/docker-compose.yml
avatar/docker-compose.yml
cBro/docker-compose.yml
catalog/docker-compose.yml
test.Dockerfile"""

println branchName
def pattern = branchName =~ /(?m)avatar\/.*/
pattern.matches()