Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-30 Thread Paddy
On Mar 30, 1:44 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > On 30 mar, 00:13, "Paddy" <[EMAIL PROTECTED]> wrote: > > > On Mar 29, 3:22 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > > > > I want to parse > > > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address > > > [EMAIL PROTE

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-30 Thread aspineux
On 30 mar, 00:13, "Paddy" <[EMAIL PROTECTED]> wrote: > On Mar 29, 3:22 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > > > > > I want to parse > > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address > > [EMAIL PROTECTED] > > > the regex is > > > r'<[EMAIL PROTECTED]>|[EMAIL PROTEC

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-29 Thread Paddy
On Mar 29, 3:22 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > I want to parse > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address [EMAIL > PROTECTED] > > the regex is > > r'<[EMAIL PROTECTED]>|[EMAIL PROTECTED]' > > now, I want to give it a name > > r'<(?P[EMAIL PROTECTED])>|(

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-29 Thread aspineux
On 29 mar, 16:22, "aspineux" <[EMAIL PROTECTED]> wrote: > I want to parse > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address [EMAIL > PROTECTED] > > the regex is > > r'<[EMAIL PROTECTED]>|[EMAIL PROTECTED]' > > now, if I want to give it a name > > r'<(?P[EMAIL PROTECTED])>|

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-29 Thread attn . steven . kuo
On Mar 29, 7:22 am, "aspineux" <[EMAIL PROTECTED]> wrote: > I want to parse > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address [EMAIL > PROTECTED] > > the regex is > > r'<[EMAIL PROTECTED]>|[EMAIL PROTECTED]' > > now, I want to give it a name > > r'<(?P[EMAIL PROTECTED])>|(

make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-29 Thread aspineux
I want to parse '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address [EMAIL PROTECTED] the regex is r'<[EMAIL PROTECTED]>|[EMAIL PROTECTED]' now, I want to give it a name r'<(?P[EMAIL PROTECTED])>|(?P[EMAIL PROTECTED])' sre_constants.error: redefinition of group name 'emai