Regular Expressions to Replace Strings

piet at cs.uu.nl piet at cs.uu.nl
Fri May 18 07:15:33 EDT 2001


>>>>> Andrew Kuchling <akuchlin at mems-exchange.org> (AK) writes:

AK> Group 0 corresponds to the match as a whole, so you could use \0 in
AK> your replacement pattern. 

In my python 2.0 \0 doesn't work. It just inserts a \0 character.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list