:
>>> txt='''\
... CustomerID:1111,
...
... text1
...
... CustomerID:2222,
...
... text2
...
... CustomerID:3333,
...
... text3
...
... CustomerID:4444,
...
... text4
...
... CustomerID:5555,
...
... text5'''
:
>>> [re.findall(r'^(\d+),\s+(.+)', block) for block in txt.split('CustomerID:') if block]
[[('1111', 'text1')], [('2222', 'text2')], [('3333', 'text3')], [('4444', 'text4')], [('5555', 'text5')]]
, :
>>> [re.findall(r'^(\d+),\s+([\s\S]+)', block) for block in txt.split('CustomerID:') if block]
[[('1111', 'text1\n\n')], [('2222', 'text2\n\n')], [('3333', 'text3\n\n')], [('4444', 'text4\n\n')], [('5555', 'text5')]]