Write, test & debug regular expressions
A full regex workbench in your browser — live highlighting, token explanation, substitution, extraction, unit tests and code generation. Nothing uploaded, nothing to install.
The workbench
Explanation
(Start of a capture group[a-zA-Z0-9._%+-]Any single character in this set+One or more of the previous token)End of the group@The literal character "@"(Start of a capture group[a-zA-Z0-9.-]Any single character in this set+One or more of the previous token)End of the groupMatch Information
hello@brightlichi.comsupport@example.org.sales@brightlichi.comQuick Reference
Live match highlighting
Every match lights up inside your text the instant you edit the pattern or string. No run button, no waiting — just type and watch.
Token-by-token explanation
See your pattern broken down piece by piece in plain English — every class, quantifier, group and anchor, as you build it.
Capture group inspection
Each match lists its full value, position range and every capture group — numbered and named — ready to reuse in substitutions.
Substitution & extraction
Preview find-and-replace with $1, $2 backreferences, or pull matches out through your own output template, live.
Unit tests that stick
Lock down a pattern with should-match / should-not-match cases. They save in your browser and re-run on every edit.
Code generation
Turn your pattern into ready-to-paste code for JavaScript, Python, PHP, Java or Go — copy and drop it straight into your project.
Three steps
Write the pattern
Type a regular expression, or load a tested one from the samples menu.
Paste your text
Drop in a log line, a CSV row, an API response — whatever you need to search.
Read the output
Matches highlight live; the side panels explain the pattern and list every capture.
What is a regular expression?
A regular expression — regex for short — is a compact way to describe a search pattern. Instead of looking for one exact word, you describe the shape of what you want: “ten digits in a row”, “something that looks like an email”, or “every word starting with a hash”. Developers reach for regex to validate inputs, search logs, find-and-replace in an editor, clean messy data, and pull pieces out of text. The catch is that one small slip breaks the whole pattern — which is exactly why testing it here first saves time.
Frequently asked questions
Stop guessing at your patterns
Free, private and instant. Scroll up, paste your text, and watch it match.