New answers tagged

0

You can use the following regular expression to match numbers starting at new line, having comma separator between groups of 3 digits. ^(?:\d{1,3}(?:(,?)\d{3})?(?:\1\d{3})*)$ Details: ^ asserts position at start of a line. ?: Match expression but do not capture it. \d matches a digit (equal to [0-9]). {1,3} Quantifier — Matches between 1 and 3 times, as ...


Top 50 recent answers are included