Help with substitution

Salman Sheikh ssheikh at writeme.com
Fri Aug 18 16:09:52 EDT 2000


Does anybody know how I can code this?

I have a file and i have to make substitutions like so:

(x downto y)  becomes [x:y]

where x and y any integer values.
I don't want to write a tons of re.compile/sub commands for
each possibility.


Salman


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup





More information about the Python-list mailing list