Re: python replace/sub/wildcard/regex issue

2010-01-19 Thread dippim
On Jan 18, 11:04 pm, tom badoug...@gmail.com wrote: hi... trying to figure out how to solve what should be an easy python/regex/ wildcard/replace issue. i've tried a number of different approaches.. so i must be missing something... my initial sample text are: Soo

Re: python replace/sub/wildcard/regex issue

2010-01-18 Thread Chris Rebert
On Mon, Jan 18, 2010 at 8:04 PM, tom badoug...@gmail.com wrote: hi... trying to figure out how to solve what should be an easy python/regex/ wildcard/replace issue. i've tried a number of different approaches.. so i must be missing something... my initial sample text are: Soo

Re: python replace/sub/wildcard/regex issue

2010-01-18 Thread alex23
On Jan 19, 2:04 pm, tom badoug...@gmail.com wrote: trying to figure out how to solve what should be an easy python/regex/ wildcard/replace issue. but i'm missing something... Well, some would say you've missed the most obvious solution of _not_ using regexps :) I'd probably do it via string

RE: python replace/sub/wildcard/regex issue

2010-01-18 Thread tom
-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Chris Rebert Sent: Monday, January 18, 2010 8:32 PM To: tom Cc: python-list@python.org Subject: Re: python replace/sub/wildcard/regex issue On Mon, Jan 18, 2010 at 8:04 PM

Re: python replace/sub/wildcard/regex issue

2010-01-18 Thread Chris Rebert
On Mon, Jan 18, 2010 at 8:31 PM, Chris Rebert c...@rebertia.com wrote: On Mon, Jan 18, 2010 at 8:04 PM, tom badoug...@gmail.com wrote: hi... trying to figure out how to solve what should be an easy python/regex/ wildcard/replace issue. i've tried a number of different approaches.. so i must