locked
Regex for number seq. between 1 -16 eg: 1,2, 4-8,12 RRS feed

  • Question

  • Hi,

    Can some one help about for the reular expression for a range of Numbers between 1 -16. The possibility of occurance of these numbers are like a printing document sequnce eg: 1, 2-10, 16 or 1, 4,  5-12 soon

     Thanks

    Manju


    manjunath
    Friday, March 25, 2011 4:58 PM

All replies

  • like this:

    /^[1-9]{1}$|^1[0-6]{1}$/

    • Proposed as answer by 仙剑侠 Saturday, April 9, 2011 11:01 AM
    Wednesday, April 6, 2011 11:49 AM