RegexHub
RegexHub copied to clipboard
A collection of useful regex patterns
Add UUID
Ranges: - `00000` to `00999`: army exclusive usage - `01000` to `95999`: metropolitan zip codes - `97000` to `97999`: overseas department (DOM) - `98000` to `98999`: overseas territory (TOM) -...
Regex which parses a multi-line address into its component parts. Address can be formatted as a single line with commas, or multiple lines. This can probably be made better by...
**Steps to Reproduce :** - Go to [RegEx Site](https://projects.lukehaas.me/regexhub/) - Go to 'Time in 24-hour format' section and enter the test string as : ```22:33``` - Observe that the output...
Your regular expression allow use e-mail like this: `d@a,,,ds,d###@@#@##@#`
Hi there. That's cool idea. I think that you can use the @regexhq organization to get regexps. Purpose behind RegexHQ is to learn, share and collect regular expressions - as...
> **HTML Tags** > `/^)$/` [Famous answer](http://stackoverflow.com/a/1732454/215042) > **Hex Value** > `/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/` Hex HTML/CSS *color* value maybe, but `0xDEADBEAF` is a perfectly valid hex value. > **Password** > `/^[a-zA-Z0-9+_-]{6,32}$/` Slowly...
I find I frequently need a regex for dollar amounts, for example: `\d*(\.\d{1,4})?` Would this be something that would make sense to add?
dont have time to submit pull req, but this regex checks for IP validity, can provide 1 IP addr or a range, ie 192.168.5.100-192.200.20.255 ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^.*[-,](([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ you can check it here...
it does not display single digit minutes in time it is because it is compulsary for 1st digit to be 0 to 5. if user enter minutes without 0 it...