I have a multiline string from which I need to split and get only required texts. I should not count the index manually because the length might change every time.
My Python code
test= "all:qwe:ew1:aq-nps-3:977232323342:isc/isc-04987s4c12399a1sa"
a= test.split()
print(a)
Now I am stuck here on how to proceed further.
I want to get "aq-nps-3" and "isc-04987s4c12399a1sa" values alone from a string and store it in different variable. Can anyone guide me on further steps? Is it a good way to count index manually or how I can get these required values alone.
Expected results:
a= aq-nps-3
b= isc-04987s4c12399a1sa