String + number split

Stevie_mac no.email at please.com
Mon Apr 12 19:09:58 EDT 2004


Thank you all very much.


"Stevie_mac" <no.email at please.com> wrote in message news:2SAec.70005$Id.6002 at news-binary.blueyonder.co.uk...
> Hello again, I can do this, but I'm sure there is a much more elegant way...
>
> A string, with a number on the end, strip off the number & discard any underscores
>
> eg...
>
> font12        becomes         ('font',12)
> arial_14      becomes        ('arial',14)
>
> Cheers
>
>





More information about the Python-list mailing list