Text Tools

Extract Matches with Regular Expressions

Extract every regex match from text with flags, capture groups, expand-all groups, dedupe, and multiple output formats for log fields and structured collection.

TextRegexExtract

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Pull dates or IDs from logs
  • Collect template placeholders
  • Extract structured fragments by rule

How to use

  1. Enter a regular expression and flags
  2. Paste the text to search
  3. Optionally use capture groups and dedupe, then copy the list

Example input and output

Regex / text

(\d{4}-\d{2}-\d{2}) / meeting 2024-03-15, due 2024-04-01

Output (groups)

2024-03-15\n2024-04-01

FAQ

What does Capture groups only mean?

When enabled, the first capture group is preferred over the full match—useful when you only need the parenthesized field.

How is this different from the regex tester?

The tester focuses on highlighting and debugging. This tool turns all matches into a copyable list with dedupe and output formats.

Tools

Related tools

Continue with another translated tool for a nearby task.

Regex Tester

Regular Expression Tester Online

Available

Test JavaScript regular expressions with live highlighting, match counts, capture groups, flag toggles, and built-in pattern presets. Matching runs locally in your browser.

Regex Testing Developer

Regex Replacer

Regex Find and Replace Online

Available

Run regular-expression find and replace with custom flags and capture-group backreferences such as $1. Batch text cleanup stays in your browser.

Regex Replace Text

Number Extractor

Extract Numbers from Text Online

Available

Pull numbers from mixed text with support for decimals, negatives, and thousands separators. Deduplicate, sort, and output as newlines or commas for reports, logs, and amount collection.

Text Extract Numbers