Hello to the community I have a query, I need a validation Regex, for amounts without decimals, that consider valid the following structure.

**99,999,999**

(With maximum number of characters of 8, not counting the commas)

Take the following cases as an example, these numbers do not have to be exactly.

```
0               -> Ok
12              -> Ok
123             -> Ok
1234            -> Ok
12345           -> Ok
123456          -> Ok
1234567         -> Ok
12345678        -> Ok
123,4           -> Ok
123,45          -> Ok
123,456         -> Ok
123,456,7       -> Ok
123,456,78      -> Ok

123456789       -> Failed
123,456,789     -> Failed
123,45,6,78     -> Failed
12,3,45,6,78    -> Failed
12,345,678.50   -> Failed
12,456,7ab      -> Failed
0.50            -> Failed

```

I have only been able to validate the size of 8 numerical characters:

```
var regex8 = /^-?([0-9]{1,8})?$/;

```

I wait for your comments.

Thank you.