Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Currency Style by gyahun_dash
import re
def checkio(text):
converted = re.compile('\$\d+(\.\d{3})*(,\d\d)?(?!\d)')
into_us = str.maketrans('.,', ',.')
return converted.sub(lambda cur: cur.group(0).translate(into_us), text)
Nov. 18, 2016