Test, debug, and understand regular expressions in real-time
Regex Playground is a free, fast, and privacy-friendly regular expression tester. Type your pattern and test string — matches are highlighted instantly. No data is sent to any server; everything runs in your browser.
Regular expressions (regex) are patterns used to match character combinations in strings. They're used in every programming language for search, validation, and text manipulation. Our regex tester supports JavaScript regex syntax including lookaheads, lookbehinds, named capture groups, and all standard quantifiers.
1. Enter your regular expression pattern in the top input field. 2. Set flags (g for global, i for case-insensitive, m for multiline, s for dotAll). 3. Type or paste your test string. 4. Matches appear instantly below. Click any common pattern to load it instantly.