Answer the question
In order to leave comments, you need to log in
How to cut a string at "/"?
Good day to all.
Such a moment. When writing a pipeline in the Groovy language, the functions of which include taking a link from a list and taking only certain parts from this link.
Currently implemented like this:
for(url in listUrls){
var1 = url.split('/')[-1]
var2 = url.split('.')[2]
..................
//Далее идет работа по использованию данных переменных
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question