preg_replace?
Philipp Lenssen
lenssen at hitnet.rwth-aachen.de
Wed Apr 17 17:24:22 EDT 2002
"Alex Martelli" <aleax at aleax.it> wrote in message
news:odlv8.24535$b62.683481 at news1.tin.it...
>..
> I'm not sure what's wrong with your code, but this works for me.
>..
Thanks, and sorry. I wrote
pattern.sub('0', s)
without ever reassigning to "s".
Actually I didn't focus on anything but the regular expression, which is why
I didn't catch it. Now that I'm told the regex is correct another look makes
it seem obvious.
More information about the Python-list
mailing list