I want to split amounts with the split function in JavaScript. Possible inputs are:
10,256,326.26
10.269,69
100
What I want to achieve is by doing the split is getting the numeric values in an array, like:
- [10,256,326,26]
- [10,269,69]
- [100]
Which regex can I use for this?
