Pattern · Test String · Live Matches
| Pattern | Matches | Example |
|---|---|---|
| \d+ | Numbers | 42, 12345 |
| [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} | user@example.com | |
| \d{3}-\d{3}-\d{4} | US Phone | 555-123-4567 |
| https?://[^\s]+ | URL | https://example.com |
| \$[\d,.]+ | Price | $42.99 |
| #\d+ | Order/ID | #12345 |
Tap a pattern to load it into the tester
| Symbol | Meaning |
|---|---|
| . | Any character (except newline) |
| \d | Digit (0-9) |
| \w | Word character (a-z, A-Z, 0-9, _) |
| \s | Whitespace |
| + | One or more |
| * | Zero or more |
| ? | Zero or one (optional) |
| {n} | Exactly n times |
| ^ | Start of string |
| $ | End of string |
| [abc] | Character class (a, b, or c) |
| (group) | Capture group |