I want to use Antd's <InputNumber /> component as monetary input, and I'm using like official documentation suggests:
<InputNumber
min={0}
size="large"
style={{ width: 400 }}
formatter={value => `$ ${value}`.replace(new RegExp(/\B(?=(\d{3})+(?!\d))/g), ',')}
parser={value => value.replace(new RegExp(/\$\s?|(,*)/g), '')}
/>
But I wish I could using comma digit like a decimal separator: R$ 17.350,70
What is the correct regex format and parser for input my currency information?