Regex Tester
Write a regular expression, set its flags, and paste text to check against it. Matches, their ranges, and capture groups highlight as you type, using your browser's own JavaScript regex engine.
How to use
- Enter a pattern and choose flags such as global or case-insensitive.
- Paste the text you want to test the pattern against.
- Inspect the highlighted matches and their capture groups.
Frequently asked questions
- Will a pattern that works here also work on my server?
- Usually, but not always. Browser JavaScript regex and server-side engines can differ in supported syntax, so test the pattern in its actual runtime before relying on it.
- Can I test sensitive text against a pattern?
- Yes. Matching happens entirely in your browser, so the text you paste is never uploaded anywhere.
Privacy
The pattern and test text are evaluated in your browser and never sent to a server.
Related tools
- JSON Formatter
Paste JSON to indent it, minify it, or find the exact position of a syntax error. Everything runs in your browser, so payloads never leave the page.
- URL Encoder/Decoder
Encode text into a URL-safe component, or decode a percent-encoded string back into plain text. Everything runs locally in your browser.
- Text Case and Duplicate Cleaner
Convert text between upper, lower, title, sentence, camelCase, snake_case, kebab-case and URL slug, or remove duplicate lines from a list. Nothing you paste leaves your browser.