Re: [Tutor] re.findall parentheses problem

2010-09-14 Thread Michael Powe
On Tue, Sep 14, 2010 at 01:09:21PM -0400, Michael Scharf wrote: > Thank you. I should have figured "groups" were the paren groups. I see it > clearly now. And your solution will work for the larger thing I'm trying to > do --- thanks. > And yes: I know this matches some non-date-like dates, b

Re: [Tutor] re.findall parentheses problem

2010-09-14 Thread Michael Scharf
Hi Evert, Thank you. I should have figured "groups" were the paren groups. I see it clearly now. And your solution will work for the larger thing I'm trying to do --- thanks. And yes: I know this matches some non-date-like dates, but the data is such that it should work out ok. Thanks again,

Re: [Tutor] re.findall parentheses problem

2010-09-14 Thread Evert Rol
> I have a regex that matches dates in various formats. I've tested the regex > in a reliable testbed, and it seems to match what I want (dates in formats > like "1 Jan 2010" and "January 1, 2010" and also "January 2008"). It's just > that using re.findall with it is giving me weird output. I

[Tutor] re.findall parentheses problem

2010-09-14 Thread Michael Scharf
Hi all, I have a regex that matches dates in various formats. I've tested the regex in a reliable testbed, and it seems to match what I want (dates in formats like "1 Jan 2010" and "January 1, 2010" and also "January 2008"). It's just that using re.findall with it is giving me weird output. I'm