using regex to remove $ sign
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Tue Apr 11 04:23:36 EDT 2006
Fredrik Lundh>RE? ex-perler? try strip+lstrip instead:<
Or even:
>>> text = " $12921 "
>>> text.replace("$", "")
' 12921 '
Bye,
bearophile
More information about the Python-list
mailing list