Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

regex allowing only number and coma

Last post 05-25-2008, 10:16 AM by ddrudik. 1 replies.
Sort Posts: Previous Next
  •  05-25-2008, 2:53 AM 42593

    regex allowing only number and coma

    Hi,

    Can anybody helpme to create a regex that allow number and coma in between

    also we must allow only 10 comas in btween the nubmers..

    ie. it wil be like 95,5,65,8,.... upto 10 numbers i can enter with coma seperated..

    is it possible for that...???


    Thanks & Regards,
    Saji
    Filed under: , ,
  •  05-25-2008, 10:16 AM 42594 in reply to 42593

    Re: regex allowing only number and coma

    Assuming you intended to allow only integers:

    ^(?:\d+,){9}\d+$


View as RSS news feed in XML