Years from 1000 to 2999
^[12][0-9]{3}$
For 1900-2099
^(19|20)\d{2}$
More Related Contents:
- Find numbers after specific text in a string with RegEx
- RegEx for Multi-Words Without Numbers and Any Special Characters
- Regex to match string containing two names in any order
- Validating IPv4 addresses with regexp
- Validating email addresses using jQuery and regex
- What is a regular expression which will match a valid domain name without a subdomain?
- Is regular expression recognition of an email address hard?
- Regex how to match an optional character
- Regular Expression Arabic characters and numbers only
- javascript regular expression to check for IP addresses
- Regex number between 1 and 100
- Regex not operator
- R split on delimiter (split) keep the delimiter (split)
- HTML5 input pattern search for quote
- Find the location of a character in string
- Is there an R function to escape a string for regex characters
- Regular Expression Vs. String Parsing
- Regular expression for GB based and only numeric phone number
- How can I match a string with a regex in Bash?
- Regex empty string or email
- Regular expression to find two strings anywhere in input
- Remove square brackets from a string vector
- Regex for Mobile Number Validation
- When is it best to use Regular Expressions over basic string splitting / substring’ing?
- Overlapping matches in R
- Regex for a valid 32-bit signed integer
- Replace string only once with php preg_replace
- Remove all characters before a period in a string
- How to validate that a string only contain lowercase letters?
- How to measure similarity between strings?