Test regular expressions against your text. Toggle flags, highlight matches, and inspect capture groups. Quick-insert common patterns for email, URL, and more.
Regular expressions are powerful for pattern matching in text. Our tester runs in your browser and shows matches highlighted in the test string, along with match count, index, value, and capture groups. Use the flag toggles: g for global (all matches), i for case-insensitive, m for multiline (^ and $ match line boundaries), and s for dotAll (dot matches newlines).
Start with built-in patterns for email, URL, phone number, IP address, date (YYYY-MM-DD), and hex color. Click a quick-insert button to load the pattern, then paste your test string to see matches. Invalid regex syntax is displayed as an error.
g for global matching, i for case-insensitive, m for multiline, and s for dotAll mode.The tester uses JavaScript's built-in RegExp engine, which follows the ECMAScript specification. Patterns that work here will work in Node.js, browsers, and any JavaScript runtime. Note that some features available in PCRE (Perl-compatible) engines, like lookbehinds in older browsers, may have limited support.
Yes. Enable the m (multiline) flag so ^ and $ match the start and end of each line rather than the entire string. Enable the s (dotAll) flag if you need . to match newline characters.
Wrap part of your pattern in parentheses to create a capture group, e.g., (\d{3})-(\d{4}). The match results panel shows each group's value separately, letting you extract specific portions of matched text. Use the Diff Checker to compare regex outputs, or explore our web development services for custom data processing solutions.