Text Pattern Finder

Find every occurrence of a word or regex in your text, see the exact line and column of each match, and replace them all at once. It runs locally in your browser, in a background worker that can be stopped, so a slow pattern never freezes the page.

Find every word or regex match with line and column, then replace them all locally.

Literal text, case-insensitive by default.

Matches

0 matches

Enter a pattern to see matches.

How to use Text Pattern Finder

  1. Paste your text and type the pattern you are looking for.
  2. Choose Find or Replace, then enable regex, whole-word or case-sensitive matching if you need it.
  3. Check the match list, copy the result or the replaced text.

Frequently asked questions

Does it support regular expressions?

Yes. Turn on regex mode to use a pattern with capture groups, named groups and the m, s or u flags.

Which matches can it safely handle?

Every scan runs in a background worker and is stopped when it takes too long, so the page stays usable. Patterns with nested quantifiers such as (a+)+ and ambiguous alternations such as (a|aa)+ are rejected outright. Input is capped at 200,000 characters and results at 5,000 matches; when a limit is reached the page says so and shows a partial count.

Do the match positions include line numbers?

Yes. Every match lists its 1-based line and column so you can jump straight to it in an editor.

What does whole word do?

It keeps only matches that do not touch a letter, digit or underscore, so cat matches in cat but not in category.

Is my text uploaded?

No. Matching and replacement happen inside your browser tab, in a background worker, and nothing is sent to a server.