Solved
Forum Discussion
nmrao
Champion Level 1
6 years agoWhat is the use case?
Usually, need to have some pattern, then it would be easy.
Usually, need to have some pattern, then it would be easy.
avidCoder
6 years agoSuper Contributor
You can do this way also:-
def fullURL = "https://whatevs.azurewebsites.net/?token=eyJ0eXAiOiJKV1Qi&value=123456789"; String[] val = fullURL.split('&') for (String exp : val) { log.info exp.split('=')[1] }
It's just a suggestion. But nmrao solution would be the best approach to use proper groovy and coding standards.