Loading…
Write a regular expression and test it against sample text in real time. Matches are highlighted as you type, with capture groups shown separately.
Use Cases
- ›Validating email, phone, or date input formats
- ›Extracting structured fields from log lines
- ›Building search-and-replace patterns before using them in an editor
- ›Testing lookahead and lookbehind behaviour
Example
Input
Pattern: \b[A-Z]{2,}\b
Text: The NASA rocket from ESA launched todayOutput
Matches: NASA, ESA
FAQ
Which regex flavour is supported?
JavaScript's built-in RegExp engine — the same one used in Node.js and all modern browsers.
Can I use flags like case-insensitive or multiline?
Yes. Toggle flags (i, g, m, s) directly in the toolbar.