What is Regex Cheatsheet?
Regular expressions are powerful but hard to memorize. This cheat sheet gathers the most used metacharacters, quantifiers and constructs —character classes, anchors, groups, lookaheads and flags— with a brief explanation of each.
Keep it handy while writing a regex to quickly recall how to express "one or more", "optional", a word boundary or a non-capturing group. It's a compact reference so you don't have to look up the syntax every time.
Frequently asked questions
What does \d mean in a regular expression?
It matches any digit (0–9). \D is the opposite: any non-digit character.
How do I make a part optional?
With the ? quantifier after the element: colou?r matches both "color" and "colour".
What is a non-capturing group?
(?:…) groups without saving the result, handy to apply quantifiers without creating a capture reference.
Is it free?
Yes, all NewKit tools are completely free.
Is my data sent to a server?
No. Processing happens 100% in your browser, so it is safe even for sensitive data.