You can never go down the drain...
Alex
cut_me_out at hotmail.com
Mon Sep 25 21:02:59 EDT 2000
> The point of the exercize is to _not_ change the source of the
> package.
>
> assert ('Gold Man' == re.sub('([a-z])([A-Z])', r'\1 \2', 'GoldMan'))
>
> The point of the exercize is to learn more about RE and Python, and do
> that another way but still in one line.
But why? If your version of python is broken, you simply have to get a
more up-to-date version which is fixed.
Hopping-because-my-shoelace-is-untied'ly yrs
Alex.
--
Speak softly but carry a big carrot.
More information about the Python-list
mailing list