I have the following regular expression:
[0-9]{8}.*\n.*\n.*\n.*\n.*
Which I have tested in Expresso against the file I am working and the match is sucessfull.
I want to match the following:
- Reference number 8 numbers long
- Any character, any number of times
- New Line
- Any character, any number of times
- New Line
- Any character, any number of times
- New Line
- Any character, any number of times
- New Line
- Any character, any number of times
My python code is:
for m in re.findall('[0-9]{8}.*\n.*\n.*\n.*\n.*', l, re.DOTALL):
print m
But no matches are produced, as said in Expresso there are 400+ matches which is what I would expect.
What I am missing here?