I have some text like this:
CustomerID:1111,
text1
CustomerID:2222,
text2
CustomerID:3333,
text3
CustomerID:4444,
text4
CustomerID:5555,
text5
Each text has multiple lines.
I want to store the customer id and the text for each id in tuples (e.g. (1111, text1), (2222, text2), etc).
First, I use the expression below:
re.findall('CustomerID:(\d+)(.*?)CustomerID:', rawtxt, re.DOTALL)
However, I only get (1111, text1), (3333, text3), (5555, text5).....