On 21/04/2010 14:51, Travis Basevi wrote:
> [%
> a = 'this problem will cost me $50 million to fix';
> b = 'WARNING:_err_';
> b.replace('_err_', a);
> %]The '$50' is being interpreted as a back-reference to the 50th set of capturing parens (of which there are none). Escaping the '$' with a backslash will fix it: a = 'this problem will cost me \$50 million to fix'; Problem solved! How do I claim my $50 million? :-) A _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
