Purpose: I want to convert a number from the format "10.234.56" to "10234.56"
Using this simple approach, we almost get
/([\d\.]+),(\d\d)/ => '\1.\2'
The problem is that the first group of the match (of course) still contains '.' character.
So the questions are:
- Is there any way to exclude a character from a group?
- How would you solve this with a single regex
(I know this is a trivial problem if you don't use one regex)
source share