newbie - Regular expression help

Satheesh Babu vsbabu at erols.com
Sun Nov 19 07:46:17 EST 2000


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.

Anyone, please...

Thx





More information about the Python-list mailing list