This regex pattern matches a number that is either in the range of 500 to 999, or in the range of 1000 to 4999, or exactly 5000.

Interactive Regex Playground

^([5-9]\d{2}|[1-4]\d{3}|5000)$
This regex pattern matches a number that is either in the range of 500 to 999, or in the range of 1000 to 4999, or exactly 5000.
Matches
Found 0 matches

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.