Regex Tester
Test regular expressions with live matches. Runs in your browser.
Pattern
Flags
Common: g (global), i (ignore case), m (multiline), s (dotAll), u (unicode)
Text
Matches: 7
| # | Index | Match |
|---|---|---|
| 1 | 0 | Paste |
| 2 | 6 | text |
| 3 | 11 | here |
| 4 | 16 | and |
| 5 | 20 | test |
| 6 | 25 | your |
| 7 | 30 | regex |
Related tools
Regex EscapeCode
Escape text so it can be safely used inside a regular expression.
Regex GeneratorCode
Generate regular expressions from common patterns like email, URL, IP, and phone.
Regex Visualizer — Visual Regular Expression EditorCode
Visualize, build, and test regular expressions with a railroad-diagram editor.
Regex CheatsheetCode
Interactive regex reference with searchable patterns, character classes, and examples.
JSON to TypeScriptCode
Generate TypeScript interfaces or types from JSON input.
JSON to Go StructCode
Generate Go structs from JSON with proper json tags.