Regex Cheat Sheet for Beginners
Anchors, character classes, quantifiers, groups, lookaround, escapes — the essential regex syntax with live examples.
広告
広告
Tools in this guide
Tool
Regex Cheat Sheet is an interactive, categorized live-preview tool in your browser.
Core syntax
| Category | Pattern | Meaning |
|---|---|---|
| Anchors | ^abc / abc$ |
Line start / end |
| Character class | [abc] / [^abc] |
a/b/c / not |
| Predefined | \d \w \s |
digit / word / whitespace |
| Quantifiers | * + ? {n,m} |
0+ / 1+ / 0-1 / n to m |
| Groups | (abc) (?:abc) |
capture / non-capturing |
| Backref | \1 |
first capture |
| Escape | \. |
literal dot |
At-a-glance examples
- Email (simplified):
[\w.+]+@[\w.-]+ - URL:
https?://\S+ - ISO date:
\d{4}-\d{2}-\d{2}
Note
Regex is Unicode mode by default; use [A-Za-z] to restrict to ASCII. For performance, avoid greedy matches and many capture groups.
広告
使い方
Open the tool
Open the relevant tool linked below in your browser. The page handles everything client-side.
よくある質問
Does this upload my file?
No. All ToolConvoy tools process files in your browser; nothing is uploaded to a server.
広告