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.
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.
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" ]