Regular expressions newbie: something for templates
Thomas Weholt
thomas at gatsoft.no
Mon Mar 11 03:09:01 EST 2002
More information about the Python-list mailing list
Mon Mar 11 03:09:01 EST 2002
- Previous message (by thread): Regular expressions newbie: something for templates
- Next message (by thread): Regular expressions newbie: something for templates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> re.sub("\$([^$]+)\$","%(\g<1>)s",s)
Ah, now I remember why I ditched Perl!! ;-)
Anyway, thanks for your help! I now got several options to go with and they
all seem to work just fine.
Thanks!!!
Thomas
- Previous message (by thread): Regular expressions newbie: something for templates
- Next message (by thread): Regular expressions newbie: something for templates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list