Hi all
i want to extract only string after "/" and before " ," , from this pattern
kloc/a6bb4232-f1c5-40fc-99d5-004046ff249d,10002,10430,false with script runner in Behaviour section
i want to have this value a6bb4232-f1c5-40fc-99d5-004046ff249d
Any help , please thank's a lot
I like to use reggex101 for figuring this out:
https://regex101.com/r/BF2fSf/1
Then using scriptrunner, you put it together using groovy matcher
def input = 'kloc/a6bb4232-f1c5-40fc-99d5-004046ff249d,10002,10430,false'
def matcher = input =~ /.*\/(.*?),/
def result = (matcher) ? matcher[0][1] : null
Thanks a lot Peter-Dave, you saved and made my day
Thanks a lot good work :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.