Groovy web console

subscribe to the feed Subscribe
to this
site

patternfind everything inbetween

Published 1 month ago by myself
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def pattern = ~/(?<=\().*(?=\))/
def teamsMessage = "Completed: SWET_CONFIG, Video 1: (https://knative-swet-aws-video.default.knative.bdops.io/es/2021-08-20/chrome-85-0-c44dc2d0-33a2-4249-9e67-3656780f4f19/es-485.mp4)| \n -- Failure post automation (reports-artifactory...etc.) -- PASSED: 94, FAILED: 0" =~ pattern
String foo = "this"
println(foo + teamsMessage[0])
println(teamsMessage.getClass().getName())