Simple regex that has me banging my head against a wall

Aahz Maruch aahz at
Thu Mar 22 02:29:01 CET 2001

In article <mailman.985215628.28804.python-list at>,
Timothy Grant  <tjg at> wrote:
>>>> re.sub(r'\$', '\$', x)

>>>'\\$1\\$asdfjke\\$lkjasdkjfsdasdfj' == r'\$1\$asdfjke\$lkjasdkjfsdasdfj'
                      --- Aahz  <*>  (Copyright 2001 by aahz at

Androgynous poly kinky vanilla queer het Pythonista
Hugs and backrubs -- I break Rule 6

"I won't accept a model of the universe in which free will, omniscient
gods, and atheism are simultaneously true."  -- M

More information about the Python-list mailing list