Re: Re: how to get all repeated group with regular expression

2008-11-22 Thread Jeremiah Dodds
On Fri, Nov 21, 2008 at 9:12 PM, scsoce <[EMAIL PROTECTED]> wrote: > MRAB wrote: > >> Steve Holden >> wrote: >> >>> Please keep this on the list. >>> >>> scsoce wrote: >>> Steve Holden wrote: > scsoce wrote: > > >> say, when I try to search and match every char from vari

Re: how to get all repeated group with regular expression

2008-11-22 Thread MRAB
scsoce wrote: MRAB wrote: Steve Holden wrote: Please keep this on the list. scsoce wrote: Steve Holden wrote: scsoce wrote: say, when I try to search and match every char from variable length string, such as string '123456', i tried re.findall( r'(\d)*, '12346' ) I think you will

Re: Re: how to get all repeated group with regular expression

2008-11-21 Thread scsoce
MRAB wrote: Steve Holden wrote: Please keep this on the list. scsoce wrote: Steve Holden wrote: scsoce wrote: say, when I try to search and match every char from variable length string, such as string '123456', i tried re.findall( r'(\d)*, '12346' ) I think you will find you misse

Re: how to get all repeated group with regular expression

2008-11-21 Thread MRAB
Steve Holden wrote: Please keep this on the list. scsoce wrote: Steve Holden wrote: scsoce wrote: say, when I try to search and match every char from variable length string, such as string '123456', i tried re.findall( r'(\d)*, '12346' ) I think you will find you missed a quote out

Re: how to get all repeated group with regular expression

2008-11-21 Thread M.-A. Lemburg
On 2008-11-21 15:31, scsoce wrote: > say, when I try to search and match every char from variable length > string, such as string '123456', ??? That's a strange requirement. If you want to match every character, then why are you using a regular expression for this ? > i tried re.findall( r'(\d)

Re: how to get all repeated group with regular expression

2008-11-21 Thread Steve Holden
Please keep this on the list. scsoce wrote: > Steve Holden wrote: >> scsoce wrote: >> >>> say, when I try to search and match every char from variable length >>> string, such as string '123456', i tried re.findall( r'(\d)*, '12346' ) >>> >> >> I think you will find you missed a quote out

Re: how to get all repeated group with regular expression

2008-11-21 Thread Hrvoje Niksic
scsoce <[EMAIL PROTECTED]> writes: > say, when I try to search and match every char from variable length > string, such as string '123456', i tried re.findall( r'(\d)*, '12346' > ) , but only get '6' and Python doc indeed say: "If a group is > contained in a part of the pattern that matched mult

Re: how to get all repeated group with regular expression

2008-11-21 Thread Steve Holden
scsoce wrote: > say, when I try to search and match every char from variable length > string, such as string '123456', i tried re.findall( r'(\d)*, '12346' ) I think you will find you missed a quote out there. Always better to copy and paste ... > , but only get '6' and Python doc indeed say: "