Regular expressions newbie: something for templates

Thomas Weholt thomas at gatsoft.no
Mon Mar 11 03:09:01 EST 2002


> 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





More information about the Python-list mailing list