best way to remove leading zeros from a tuple like string

bruceg113355 at gmail.com bruceg113355 at gmail.com
Sun May 20 18:10:42 EDT 2018


On Sunday, May 20, 2018 at 5:32:32 PM UTC-4, Paul wrote:
> >
> >
> > This works for me: mytuplestring.replace("0","")
> >
> > Your regex will also eliminate  non-leading zeros.


Your right, what was I thinking?



More information about the Python-list mailing list