can anyone tell me how can I write RegEx for range between 20000 -42000 including comma, E.g. 35454.55 should be correct input... Thanks in advance! I have this code for range 1 - 25000, but I cannot figure out how to set upper range: ^([1-9]\d{0,3}|1\d{4}|2[0-4]\d{3}|25000)$