I have a requirement to capture the ',' separated values which are the following pattern XXXX.XXXX,XXX.XXX the max digits are 4 on both side of the '.'
thanks
I have a requirement to capture the ',' separated values which are the following pattern XXXX.XXXX,XXX.XXX the max digits are 4 on both side of the '.'
thanks
Here's a better one:
(?:^|,)(\d{1,4}\.\d{1,4})(?=,|$)
Pushpesh Kumar Rajwanshi's solution has some issues. For the following pattern
13456.1234,433.544
It would output this:
3456.1234