-1

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

RamMohan222
  • 85
  • 1
  • 6

1 Answers1

0

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
WofWca
  • 514
  • 3
  • 10