Re: re.search (works)|(doesn't work) depending on for loop order

2008-03-23 Thread sgharvey
On Mar 22, 5:03 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 22 Mar 2008 17:27:49 -0300, sgharvey <[EMAIL PROTECTED]> > escribi�: > Take a look at ConfigObjhttp://pypi.python.org/pypi/ConfigObj/ Thanks for the pointer; I'll check it out. >

re.search (works)|(doesn't work) depending on for loop order

2008-03-22 Thread sgharvey
... and by works, I mean works like I expect it to. I'm writing my own cheesy config.ini parser because ConfigParser doesn't preserve case or order of sections, or order of options w/in sections. What's confusing me is this: If I try matching every line to one pattern at a time, all the patter