Re: [Tutor] Avoiding repetetive pattern match in re module

2006-01-06 Thread Kent Johnson
Intercodes wrote: > Hello everyone, > > Iam new to this mailing list as well as python(uptime-3 weeks).Today > I learnt about RE from http://www.amk.ca/python/howto/regex/ > .This one was really > helpful. I started working out with few exampl

Re: [Tutor] Avoiding repetetive pattern match in re module (fwd)

2006-01-05 Thread Adam
On 05/01/06, Danny Yoo <[EMAIL PROTECTED]> wrote: -- Forwarded message --Date: Fri, 6 Jan 2006 01:53:41 +0530From: Intercodes <[EMAIL PROTECTED]>To: Danny Yoo < [EMAIL PROTECTED]>Subject: Re: [Tutor] Avoiding repetetive pattern match in re moduleHello Danny,Thanks for the response.

Re: [Tutor] Avoiding repetetive pattern match in re module (fwd)

2006-01-05 Thread Danny Yoo
-- Forwarded message -- Date: Fri, 6 Jan 2006 01:53:41 +0530 From: Intercodes <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Avoiding repetetive pattern match in re module Hello Danny, Thanks for the response. The read() and join() method

Re: [Tutor] Avoiding repetetive pattern match in re module

2006-01-05 Thread Danny Yoo
> >From a technical standpoint, it has "quadratic" complexity in terms of > what work the computer is doing. It's related to the mathematical idea > that 1 + 2 + 3 + 4 + ... + n = n(n+1). > > http://en.wikipedia.org/wiki/Triangle_number Gaa, where did my division sign go? *grin* Sorry, tha

Re: [Tutor] Avoiding repetetive pattern match in re module

2006-01-05 Thread Danny Yoo
> Instead of writing a new 'for,if' loop to filter the repetetive tags > from the list, is there something that I can add in the re itself to > match the pattern only once? Hi Intercodes, As far as I know, no: regular expressions don't have the capacity to remember what tags they've matched in p

Re: [Tutor] Avoiding repetetive pattern match in re module

2006-01-05 Thread bob
At 02:41 AM 1/5/2006, Intercodes wrote: Hello everyone,     Iam new to this mailing list as well as python(uptime-3 weeks).Today I learnt about RE from http://www.amk.ca/python/howto/regex/.This one was really helpful. I started working out with few examples on my own. The first one was to colle

[Tutor] Avoiding repetetive pattern match in re module

2006-01-05 Thread Intercodes
Hello everyone,    Iam new to this mailing list as well as python(uptime-3 weeks).Today I learnt about RE from http://www.amk.ca/python/howto/regex/.This one was really helpful. I started working out with few examples on my own. The first one was to collect all the HTML tags used in an HTML file.