I have a large string in the format of the following:
'324/;.ke5 efwef dwe,werwrf <>i want this<> ergy;'56\45,> thu ;lokr<>i want this<> htur ;''\> htur> jur'
i know that i can do something along the lines of:
result= text.partition('<>')[-1].rpartition('<>')[0]
but this will just give me what is in between the first <> and the last <> in the string , how can i loop through the whole string and extract what is in between each respective <> <> tag pair?