newbie - Regular expression help
Grant Edwards
grante at visi.com
Mon Nov 20 18:03:19 EST 2000
In article <8v8i2a$lmt$1 at bob.news.rcn.net>, Satheesh Babu wrote:
>Hi all,
>
>I need to scan a string and replace all occurrences of
>"./" with null. But "../" shouldn't get changed.
>
>Stupid way is to first replace ../ with AbRaCaDaBrA
>and then replace ./ with null and then replace
>AbRaCaDaBrA with ../
>
>There should be a simpler solution.
Probably. But does it have anything to do with Esperanto?
--
Grant Edwards grante Yow! Awright, which one of
at you hid my PENIS ENVY?
visi.com
More information about the Python-list
mailing list