I have a string like \'$200,000,000\' or \'Yan300,000,000\'
\'$200,000,000\'
\'Yan300,000,000\'
I want to split the currency and number, and output a tuple (\'$\', \'200
(\'$\', \'200
>>> filter(str.isdigit, s) '200000000' >>> filter(lambda x: not x.isdigit() and x != ',', s) '$' >>> >>> (filter(lambda x: not x.isdigit() and x != ',' ,s), filter(str.isdigit, s)) ('$', '200000000') >>>