How to use this tool
- Enter a JavaScript regular expression pattern without surrounding slashes.
- Toggle flags such as global, ignore case, multiline, dotAll, or unicode.
- Review matches, groups, indexes, and replacement output.
Test JavaScript regular expressions locally, inspect matches and capture groups, toggle flags, and preview replacement output without uploading text.
Use this tester for logs, API payloads, form validation, find-and-replace, and capture-group debugging.
([a-z]+)@example\.comada@example.com and lin@example.com.ada and lin.$1, $2, and named groups carefully.| Case | What to check |
|---|---|
| Multiline anchors | Use m when ^ and $ should apply per line. |
| Dot matches newline | Use s when . should cross line breaks. |
| Global matching | Use g to list all matches instead of only the first one. |
Use these tools around regex debugging and text extraction workflows.
Format JSON before extracting values or testing patterns.
Decode URLs before matching query strings or route patterns.
Decode text payloads before testing regular expressions.
Convert matched Unix timestamps into readable dates.
Practical details about JavaScript regex testing.
No. Pattern matching and replacement preview run locally in your browser.
This page uses JavaScript RegExp syntax, matching modern browser behavior.
Yes. Each match row lists captured groups when the pattern contains parentheses.
Yes. Enter replacement text and run the pattern to preview the replaced output.