RegexHQ
Collaboration on a world-wide community-driven collection of RegExp patterns and tools that can make our life easier.
Global
Pinned Repositories
filename-regex
Regular expression for matching file names, with or without extension.
function-regex
Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.
hex-color-regex
Regular expression for matching hex color values from string.
mentions-regex
100% twitter compatible `@mentions` regex! Regular expression for matching `@username` mentions, as used on twitter, facebook, github, etc.
path-root-regex
Regular expression for getting the root of a posix or windows filepath.
regex-email
Regular expression for email
regex-username
Regular expression for usernames
regexhq
Logo license and organization discussion.
year-range-regex
Generates a regular expression for validating a range of years.
youtube-regex
Best YouTube Video ID regex. Online: https://regex101.com/r/rN1qR5/2 and http://regexr.com/3anm9
RegexHQ's Repositories
regexhq/youtube-regex
Best YouTube Video ID regex. Online: https://regex101.com/r/rN1qR5/2 and http://regexr.com/3anm9
regexhq/regex-username
Regular expression for usernames
regexhq/regex-email
Regular expression for email
regexhq/filename-regex
Regular expression for matching file names, with or without extension.
regexhq/hex-color-regex
Regular expression for matching hex color values from string.
regexhq/doi-regex
Regular expression for matching DOIs
regexhq/function-regex
Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.
regexhq/phone-regex
A regular expression for matching phone numbers.
regexhq/word-regex
Regular expression for matching words in a string. Support for english, CJK and Cyrillic.
regexhq/es6-template-regex
Regular expression for matching es6 template delimiters in a string.
regexhq/year-range-regex
Generates a regular expression for validating a range of years.
regexhq/credit-card-regex
Regular expression for matching credit card numbers
regexhq/path-root-regex
Regular expression for getting the root of a posix or windows filepath.
regexhq/vimeo-regex
The correct Vimeo video id regex. Online: https://regex101.com/r/uW5oK9/5 or http://regexr.com/3begm
regexhq/regex-iso-date
Regular expression for ISO date
regexhq/rgba-regex
Regex for matching RGBA color strings.
regexhq/copyright-regex
Regular expression for matching and parsing copyright statements.
regexhq/dotfile-regex
Regular expresson for matching dotfiles.
regexhq/hsl-regex
Regex for matching HSL color strings.
regexhq/punctuation-regex
Regular expression for matching punctuation characters.
regexhq/todo-regex
Regular expression for matching TODO statements in a string.
regexhq/whitespace-regex
Regular expression for matching the whitespace in a string.
regexhq/rgb-regex
Regex for RGB color strings.
regexhq/unc-path-regex
Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
regexhq/dotdir-regex
Regex for matching dot-directories, like ".git/" or ".github/"
regexhq/quoted-string-regex
JavaScript regular expression for matching a quoted string.
regexhq/hsla-regex
Regex for matching HSLA color strings.
regexhq/coverage-code-regex
Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`
regexhq/delimiter-regex
Generate template delimiters for string interpolation.
regexhq/requires-regex
Regular expressions for matching node.js require statements.