RegEx Tester
Regular Expression Testing Tool
Test regular expressions against text with real-time matching and group capture.
/
/
Enter a pattern and test string above
No matches yet
Quick Reference
| Pattern | Description |
|---|---|
. | Any character except newline |
\d | Digit (0-9) |
\w | Word character (a-z, A-Z, 0-9, _) |
\s | Whitespace |
[abc] | Character class |
^ / $ | Start / end of line |
* / + / ? | 0+, 1+, 0 or 1 |
{n,m} | Between n and m times |
(group) | Capture group |
(?:group) | Non-capturing group |
a|b | Alternation (a or b) |
About Regular Expressions
Regular Expressions are a powerful tool for pattern matching and text manipulation.
They are used in many programming languages and tools to search, replace, and validate text.
Learn more: JavaScript RegExp Reference