Given that string:
\n \n text1\n \ttext2\n Message: 1st message\n some more text\n \n \n Message: 2dn message\n\n \t\t Message: 3rd message\n text3\n
I want to extract messages from a multiline string (token is 'Message: '). What regex expression should I use to capture those 3 groups:
- group 1 : '1st message'
- group 2 : '2dn message'
- group 3 : '3rd message'
I tried a lot of things but I can get the expression to work because the string is a multiline string.
My program is in python 2.6 but I suppose it does not make a big difference what language I use...