Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Currency Style solution in Clear category for Currency Style by vinc
import re
PATTERN = re.compile('\$\d{1,3}(\.\d{3})*(,\d{2})?(?!\d)')
def convert(matchobj):
return matchobj.group().translate(str.maketrans('.,',',.'))
def checkio(text):
"Convert Euro style currency in dollars to US/UK style"
return PATTERN.sub(convert, text)
Sept. 13, 2015
Comments: