Re: Python Regular Expressions: re.sub(regex, replacement, subject)

2005-07-05 Thread George Sakkis
"Vibha Tripathi" <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I put a Regular Expression question on this list a > couple days ago. I would like to rephrase my question > as below: > > In the Python re.sub(regex, replacement, subject) > method/function, I need the second argument > 'replacement' to

Re: Python Regular Expressions: re.sub(regex, replacement, subject)

2005-07-05 Thread Benjamin Niemann
Vibha Tripathi wrote: > Hi Folks, > > I put a Regular Expression question on this list a > couple days ago. I would like to rephrase my question > as below: > > In the Python re.sub(regex, replacement, subject) > method/function, I need the second argument > 'replacement' to be another regular e

Re: Python Regular Expressions: re.sub(regex, replacement, subject)

2005-07-05 Thread Steven Bethard
Vibha Tripathi wrote: > In the Python re.sub(regex, replacement, subject) > method/function, I need the second argument > 'replacement' to be another regular expression ( not a > string) . So when I find a 'certain kind of string' in > the subject, I can replace it with 'another kind of > string' (

Python Regular Expressions: re.sub(regex, replacement, subject)

2005-07-05 Thread Vibha Tripathi
Hi Folks, I put a Regular Expression question on this list a couple days ago. I would like to rephrase my question as below: In the Python re.sub(regex, replacement, subject) method/function, I need the second argument 'replacement' to be another regular expression ( not a string) . So when I fin