tools.regex-cheatsheet.description
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
. or [^\n\r] | tools.regex-cheatsheet.anyCharacter |
[A-Za-z] | tools.regex-cheatsheet.alphabet |
[a-z] | tools.regex-cheatsheet.lowercaseAlphabet |
[A-Z] | tools.regex-cheatsheet.uppercaseAlphabet |
\d or [0-9] | tools.regex-cheatsheet.digit |
\D or [^0-9] | tools.regex-cheatsheet.nonDigit |
_ | tools.regex-cheatsheet.underscore |
\w or [A-Za-z0-9_] | tools.regex-cheatsheet.wordCharacter |
\W or [^A-Za-z0-9_] | tools.regex-cheatsheet.nonWordCharacter |
\S | tools.regex-cheatsheet.nonWhitespace |
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
| tools.regex-cheatsheet.space |
\t | tools.regex-cheatsheet.tab |
\n | tools.regex-cheatsheet.newline |
\r | tools.regex-cheatsheet.carriageReturn |
\s | tools.regex-cheatsheet.whitespace |
tools.regex-cheatsheet.characterSetNote
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
[xyz] | tools.regex-cheatsheet.eitherXYZ |
[^xyz] | tools.regex-cheatsheet.neitherXYZ |
[1-3] | tools.regex-cheatsheet.either123 |
[^1-3] | tools.regex-cheatsheet.neither123 |
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
\. | tools.regex-cheatsheet.period |
\^ | tools.regex-cheatsheet.caret |
\$ | tools.regex-cheatsheet.dollarSign |
\| | tools.regex-cheatsheet.pipe |
\\ | tools.regex-cheatsheet.backSlash |
\/ | tools.regex-cheatsheet.forwardSlash |
\( | tools.regex-cheatsheet.openingBracket |
\) | tools.regex-cheatsheet.closingBracket |
\[ | tools.regex-cheatsheet.openingSquareBracket |
\] | tools.regex-cheatsheet.closingSquareBracket |
\{ | tools.regex-cheatsheet.openingCurlyBracket |
\} | tools.regex-cheatsheet.closingCurlyBracket |
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
\\ | tools.regex-cheatsheet.backSlash |
\] | tools.regex-cheatsheet.closingSquareBracket |
tools.regex-cheatsheet.quantifiersNote
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
{2} | tools.regex-cheatsheet.exactly2 |
{2,} | tools.regex-cheatsheet.atLeast2 |
{2,7} | tools.regex-cheatsheet.atLeast2NoMoreThan7 |
* | tools.regex-cheatsheet.zeroOrMore |
+ | tools.regex-cheatsheet.oneOrMore |
? | tools.regex-cheatsheet.exactlyZeroOrOne |
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
^ | tools.regex-cheatsheet.startOfString |
$ | tools.regex-cheatsheet.endOfString |
\b | tools.regex-cheatsheet.wordBoundary |
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
foo|bar | tools.regex-cheatsheet.matchEitherFooOrBar |
foo(?=bar) | tools.regex-cheatsheet.matchFooBeforeBar |
foo(?!bar) | tools.regex-cheatsheet.matchFooNotBeforeBar |
(?<=bar)foo | tools.regex-cheatsheet.matchFooAfterBar |
(?<!bar)foo | tools.regex-cheatsheet.matchFooNotAfterBar |
tools.regex-cheatsheet.capturingGroupsNote
tools.regex-cheatsheet.expression | tools.regex-cheatsheet.description |
---|---|
(foo) | tools.regex-cheatsheet.capturingGroup |
(?:foo) | tools.regex-cheatsheet.nonCapturingGroup |
(foo)bar\1 | tools.regex-cheatsheet.backreference |
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
tools.regex-cheatsheet.emailExampleDesc
^(\+?1[-.\s]?)?\(?([0-9]{3})\)?[-.\s]?([0-9]{3})[-.\s]?([0-9]{4})$
tools.regex-cheatsheet.phoneExampleDesc
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
tools.regex-cheatsheet.passwordExampleDesc
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
tools.regex-cheatsheet.urlExampleDesc
^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/\d{4}$
tools.regex-cheatsheet.dateExampleDesc
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3[0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})$
tools.regex-cheatsheet.creditCardExampleDesc