Regular Expression: Numeric range [duplicate]

I don’t think regex is the right choice for this. Have you tried parsing the value? If you have to use regex I would match \d{1,3} parse the string and then validate the number in code.

Leave a Comment