Dear all,
I am trying to parse a lot of text. for small amounts of text, the WHILE loop I use to find all spaces in the text works well:
markerlist=[]
counter=0
while len(markerlist)<text.count(marker):
markerlist.append(text.find(marker,counter)
counter=text.find(marker,counter)+1
This iterative process is very, very slow when working with a few megabites of text. Can someone advise a faster method?
Best,
Wheaton