Your data is never sent to a server or stored anywhere. All processing happens in your browser.

Regex Tester

Flags
Matches 0 matches found
No matches found
Pattern Explanation
Enter a pattern to see its explanation
Quick Reference
Code Snippets
Enter a pattern to generate code

How to Use


Enter a regex pattern and flags (g for global, i for case-insensitive, m for multiline, s for dotAll, u for unicode). Type test text below to see matches highlighted in real time, including capture groups and match positions. Switch to the Replace tab for substitution, or scroll down for pattern explanation, code snippets, and a quick reference.

Regular Expression Flags


g (global) finds all matches, not just the first. i (case-insensitive) ignores letter case. m (multiline) makes ^ and $ match line boundaries. s (dotAll) makes . match newlines. u (unicode) enables full Unicode matching. d (hasIndices) provides start/end indices for capture groups.

Privacy


All regex evaluation happens entirely in your browser using JavaScript's built-in RegExp engine. No patterns or test strings are sent to a server, stored, or logged.

© 2026 Orankit