Regex Tester RegEx · omikuji tools Local processing only Runs in your browser Cheatsheet Toggle theme Reset all ✕ ✨ Features Real-time match highlighting Capture group display g/i/m/s/u flag support Runs entirely in browser — no server involved 🪄 Ways to Use It Debugging regex in code Quickly validate regex patterns used in your code and confirm matches in real time.
Validating emails & phone numbers Test form validation patterns and instantly verify whether inputs match the expected format.
Extracting data from text Build and test patterns to extract specific information from log files or large text blobs.
Verifying pattern matching in code Pre-validate patterns for grep, sed, awk, and similar tools right in your browser.
🔒 Privacy All text you enter is processed entirely within your browser and never sent to any server. You can safely test text containing API keys or personal information.
❓ FAQ Which flags are supported? All five flags are supported: g (global), i (ignore case), m (multiline), s (dotAll), and u (unicode).
Are capture groups shown? Yes. Capture groups are listed for each match, including named groups.
Can it handle large amounts of text? Yes, processing is done in the browser, so it works within your browser's memory limits.
Can I save or share a pattern? The pattern is included in the URL, so you can bookmark it or share it as a link.
gglobal · match all iignoreCase · case-insensitive mmultiline · ^ $ per line sdotAll · . matches newline uunicode · full support
No matches
Paste logs or texthere
Matches are highlighted in real time. Nothing is sent externally — even if you paste sensitive data.
Matches 0 Sanitize Commands Masks all matches (API keys, IPs, PII, etc.) in one shot. Paste the result directly into an AI prompt. All occurrences are replaced regardless of the g flag. Target shell Target shell
bash / zsh PowerShell
Replacement string (for sed / -replace)
Quotes and special characters are pre-escaped for your shell. Paste directly into Alacritty, tmux, or any terminal. Replace file.log with your target path.