Cheatsheets

Regex Cheatsheet

Use this regex cheatsheet for quick reminders on anchors, character classes, groups, quantifiers and practical matching patterns.

Quick reference

Basics

Any char.

Matches any character except line breaks in many engines.

Digit\d
Word char\w
Whitespace\s

Anchors and quantities

Start^
End$
Zero or more*
One or more+

Groups

Capture(abc)
Non-capture(?:abc)
Either/orcat|dog
Optionalcolou?r

Examples

CodeSimple email shape

Useful for basic UI checks, not a complete email specification.

^[^\s@]+@[^\s@]+\.[^\s@]+$
CodeSlug-like string
^[a-z0-9]+(?:-[a-z0-9]+)*$

Regex FAQ

What is included in the Regex cheatsheet?

Regex Cheatsheet includes quick reference sections, practical examples, common mistakes, tips and links to related DevKitYard tools.

Is the Regex cheatsheet interactive?

This cheatsheet is a static quick reference focused on concise commands, syntax and examples.

When should I use this Regex reference?

Use it when you need to recall syntax, compare common patterns or avoid mistakes without opening a long tutorial.

What should I use after reading this cheatsheet?

Use related DevKitYard tools such as Regex Tester, Slug Generator when you need to format, validate, generate or inspect real output.