[Tutor] re module and looping

Magnus Lycka magnus@thinkware.se
Tue, 15 Oct 2002 10:42:27 +0200


At 15:30 2002-10-11 -0400, McCarney, James Alexander wrote:
>I would have thought
>
>     p=3Dre.compile(r"(<.*?>)",re.DOTALL)
>     m=3Dre.findall(r"(<.*?>)",alllines)

Why don't you use your compiled pattern (the
one using re.DOTALL):

m=3Dp.findall(alllines)


--=20
Magnus Lyck=E5, Thinkware AB
=C4lvans v=E4g 99, SE-907 50 UME=C5
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se