Regex Tester & Cheat Sheet
Test regular expressions in real time — highlighted matches, capture groups, replacement preview.
NEON REGEX
Real-time regex match highlighter
//g
g global · i case-insensitive · m multiline · s dotall · u unicode · y sticky
TEST STRING
164chars · matches in color, groups underlined
REPLACE
$
Usage guide
Enter a regex and test string — matches highlight in real time and capture groups are underlined.
- Matches cycle through pink, lime, purple, and amber.
- Groups show numbered underline colors; the results panel lists positions (row:col, index range, length).
- Named groups (?<name>...) show the name on the badge.
- Type a replacement in REPLACE to preview — $1, $<name>, $$ supported.
- The JSON button copies the match list.
- Match time (ms) shows in the results header.
- Turn off g to test only the first match.
- Invalid patterns show an error and stop highlighting.
- Tap common patterns in the cheat sheet to apply them.
- On mobile, bottom tabs switch editor and results.
How to use
Enter a pattern and test string — matches highlight in real time with capture groups underlined. Use REPLACE for substitution preview.
Frequently asked
- Which flags are supported?
- g, i, m, s, u, y — toggle them above the pattern input.
- Can I preview replacements?
- Yes — type a replacement string with $1, $<name>, $$ support.
- Is my pattern sent anywhere?
- No — everything runs locally in your browser.
regex testerregular expressionregex cheat sheetregex debuggerpattern tester