I have some values in column like
data1 = "any_number_of_characters&wanted=gsjgj87-hdjh_66&"
data2 = "any_number_of_characters&wanted=g232gj87-hdjh_66#dhvdhohoh"
data3 = "any_number_of_characters&wanted=gsjgj87-hdjh_66?uhdjd=skjhnknkn"
Consider this is coming for same field in loop after one another. Now I am finding value string 'wanted=' in the above string and then want value till i find '&' or '#' or '?'
If i do it in if-else loop, due to unpredictability of the character appearance it works for ine character but fails for other.
I want to achieve this without iterating character by character like find() function but I am not able to search for first occurrence of a single character out of these 3.