Regex: Comma delimited integers

Posted by Metju on Stack Overflow See other posts from Stack Overflow or by Metju
Published on 2010-05-27T13:21:45Z Indexed on 2010/05/27 13:31 UTC
Read the original article Hit count: 758

Filed under:
|

Hi Guys,

I'm trying to create a regex that accept: An empty string, a single integer or multiple integers separated by a comma but can have no starting and ending comma.

I managed to find this, but I cannot undertsand how to remove the digit limit

^\d{1,10}([,]\d{10})*$

© Stack Overflow or respective owner

Related posts about regex

Related posts about comma-separated