Simple regex that has me banging my head against a wall
Aahz Maruch
aahz at panix.com
Wed Mar 21 20:29:01 EST 2001
In article <mailman.985215628.28804.python-list at python.org>,
Timothy Grant <tjg at exceptionalminds.com> wrote:
>
>>>> re.sub(r'\$', '\$', x)
>'\\$1\\$asdfjke\\$lkjasdkjfsdasdfj'
>>>'\\$1\\$asdfjke\\$lkjasdkjfsdasdfj' == r'\$1\$asdfjke\$lkjasdkjfsdasdfj'
1
--
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het Pythonista http://www.rahul.net/aahz/
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