View Single Post
Old 12-20-2010, 03:49 PM   #3
veezh
plus ça change
veezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beauty
 
veezh's Avatar
 
Posts: 101
Karma: 32134
Join Date: Dec 2009
Location: France
Device: Kindle PW2, Voyage
Quote:
Originally Posted by kovidgoyal View Post
use

r'\1 \2\3\4'


Note the r
Thanks very much for your reply, Kovid.

I've just tried your suggestion, but I'm still getting the same result as before, i.e. that the strings are being found but are being replaced with the literal string I've supplied, not the variables.

As an example, the number '22 100' shows up as '2\1 \2\3\4' (the non-breaking space is correctly being added) in the files generated from the recipe.

Any other hints greatly appreciated!
veezh is offline   Reply With Quote