🔍 Regex Tester
Test regex patterns with match highlighting, capture groups, replace preview, and code snippets.
| # | Match | Index | Groups |
|---|
Quick Reference ▾
| Pattern | Description |
|---|---|
| \d | Digit [0-9] |
| \w | Word char [a-zA-Z0-9_] |
| \s | Whitespace |
| . | Any char (except newline) |
| ^ | Start of line |
| $ | End of line |
| * | 0 or more |
| + | 1 or more |
| ? | 0 or 1 |
| {n,m} | Between n and m times |
| (abc) | Capturing group |
| (?:abc) | Non-capturing group |
| a|b | Alternation |
| [abc] | Character class |
| [^abc] | Negated class |
| (?=abc) | Positive lookahead |
| (?!abc) | Negative lookahead |
Test regular expressions with real-time match highlighting, captured groups, replace preview, and a quick syntax reference. Toggle global, ignore case, multiline, dotall, and unicode flags, then export JavaScript, Python, Go, Java, or PHP snippets. Input text and match results are processed in the current browser and are not uploaded to LittleOne Tools servers. Regex semantics can differ by language, so generated snippets should be checked in the target runtime.