Re: problem with re.MULTILINE

2009-10-18 Thread Necronymouse
On 18 říj, 21:20, MRAB wrote: > Necronymouse wrote: > > Hello i ´ve got a little problem: I ´ve this text: > >http://openpaste.org/en/secret/17343/pass-pythonand I need to parse > > it. So i wrote this: > > > patternNode = re.compile(""" > > # Node (\w*).* > > (.*)""", re.MULTILINE) > > > with ope

Re: problem with re.MULTILINE

2009-10-18 Thread MRAB
Necronymouse wrote: Hello i ´ve got a little problem: I ´ve this text: http://openpaste.org/en/secret/17343/pass-python and I need to parse it. So i wrote this: patternNode = re.compile(""" # Node (\w*).* (.*)""", re.MULTILINE) with open("test.msg", "r") as file: testData = file.read() fo