Online Extract Regex Matches from Text
Find and list all matches of a regular expression in your text. Enter a regex pattern and get each match (or capture groups) listed. Client-side only.
Frequently Asked Questions
- What regex flavor is supported?
- JavaScript regex (ECMAScript). Use standard syntax: character classes [a-z], quantifiers +, *, ?, groups (), and flags like g (global) and i (case-insensitive).
- Can I get capture groups?
- Yes. Use parentheses in your pattern (e.g. (\d+)) and the tool can show each group; the first match is often the full match, then group 1, 2, etc.
- Invalid regex?
- If the pattern is invalid, an error message is shown and no matches are returned. Check for unescaped special characters.
Related Text Tools
Word Counter
Count words, characters, sentences, and paragraphs. Perfect for writers and students.
Case Converter
Convert text between uppercase, lowercase, title case, and sentence case instantly.
Morse Code Translator
Translate text to Morse code and Morse code to text. Supports letters, numbers, and punctuation.
Lorem Ipsum Generator
Generate placeholder text for designs and mockups. Choose paragraphs, sentences, or words.
Diff Checker
Compare two texts side by side. Highlight differences between documents, code, or strings.
Character Counter
Count characters with and without spaces. Real-time counts for tweets, meta descriptions, and forms.