Test regular expressions against sample text with live match highlighting.
A regex tester lets you validate patterns against sample strings before using them in code or search-and-replace.
Enter your regex pattern and flags.
Paste test text.
Review matches and groups.
Enter standard JavaScript flags like g, i, m, s, and u in the flags field. The global flag is added automatically when listing all matches.
Check for typos, missing anchors, or flags. Case-sensitive patterns won't match different casing unless you add the i flag.
Yes. Matches are listed, and grouped captures are collected internally — use parentheses in your pattern to extract substrings.
Yes. This tool is completely free to use with no sign-up, no limits, and no hidden fees.
No. All processing happens entirely in your browser using client-side JavaScript. Your data is never sent to a server or stored anywhere.
Yes. PeasyDo tools work in modern mobile browsers on iOS and Android. For file tools, use a browser that supports file uploads and downloads.
No. Everything runs in your browser — no desktop app, plugin, or account required.
Found a bug or have a suggestion? Let us know — it helps us improve this tool.
Free online utilities for text, code, and more — all running privately in your browser.
3 match(es)
[ "42", "19", "99" ]