I'm having a JQuery function that displays an amount in a text input field. Very simple... However this is a French app, and I'm trying to build a regex for French number formatting (space as thousands separator, comma as decimal separator).
I've tried several ways... and the last try was .replace(/(\d)(?=(?:\d{3})+(?:$))/g, '$1 ');
but it gives no space as thousands separator, and no comma decimal separator.
Thanks in advance for any help!