Find a string between two substrings, BUT the end of the first is the start of the next one
So I have a string that goes like this: …<p><noop><fademusic:23,0><26:1><wait:30> <speed:10><30:2><5D:1><color:3>August 3, 9:47 AM<b>District Court<b>Defendant Lobby No. 2<color:0><p><hidetextbox:1><5D:0> <speed:255><music:8,0><wait:30><26:0><bgcolor:513,1,31><wait:7> <person:0,0,0><bg:2><bgcolor:258,1,31><wait:15><wait:30><hidetextbox:0> <name:512><shake:30,0><color:2>(Boy am I nervous!)<color:0><p> <hidetextbox:1><wait:45><name:1792><hidetextbox:0><bgcolor:769,8,31> Wright!<p>… What do I need: find everything between <p>s. (Note that the ending one is also a starting one for the next.) My code: … filetext = open(fn).read() tag =… Read More Find a string between two substrings, BUT the end of the first is the start of the next one