Skip to content
Test versionSearch

Developer tools

Find and replace text with patterns

Find text by character pattern with exact scalar and UTF16 positions, and optionally replace it literally. Export JSON, spreadsheet-safe CSV and the replaced text.

How it worksFAQRelated tools

Content reviewed:

Inspect an own small pattern sample and calculate. Native exports and report exports are separate; reloading removes temporary scenarios.

Own syntax subset; not ECMAScript regex conformance. No groups, alternation, flags, lookaround, backreferences, counted/lazy quantifiers or Unicode property classes. Case-sensitive; whitespace escapes are ASCII-only. Source128scalars/256 units, pattern 80 units/16 atoms, replacement 80 units, 12 matches, 200000 predicate evaluations per request; excess refuses rather than truncating. Replaced result 400 units, JSON3500/report 18 parts. Raw pattern and replacement values preserve spaces; own UTF8 file8KiB/256 units preserves original source line endings/BOM. CSV text cells add apostrophe for formula-leading content; JSON retains exact original matches.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Own parser and endpoint-set matcher, leftmost longest selection; valid Unicode scalars. Supported literals, dot excluding line separators, ASCII ranges/negated classes, ASCII digit/word/whitespace escapes, star/plus/question quantifiers and absolute start/end anchors. Empty matches advance by one scalar. Replacement is literal, without dollar substitutions. Own syntax subset; not ECMAScript regex conformance. No groups, alternation, flags, lookaround, backreferences, counted/lazy quantifiers or Unicode property classes. Case-sensitive; whitespace escapes are ASCII-only. Source128scalars/256 units, pattern 80 units/16 atoms, replacement 80 units, 12 matches, 200000 predicate evaluations per request; excess refuses rather than truncating. Replaced result 400 units, JSON3500/report 18 parts. Raw pattern and replacement values preserve spaces; own UTF8 file8KiB/256 units preserves original source line endings/BOM. CSV text cells add apostrophe for formula-leading content; JSON retains exact original matches.

Worked example

Own fabricated text with character patterns.

Frequently asked questions

What does the find and replace tool do?

It finds bounded character-pattern matches with exact scalar and UTF-16 positions, with optional literal replacement. You can export match JSON, spreadsheet-safe CSV and the replaced text.

Which pattern syntax is supported?

Literals, dot, ASCII classes and ranges, ASCII digit, word and whitespace escapes, star, plus and question quantifiers and absolute start and end anchors. It is a subset, not ECMAScript regex.

Which regex features are not supported?

There are no groups, alternation, flags, lookaround, backreferences, counted or lazy quantifiers or Unicode property classes. Matching is case-sensitive.

What size limits apply?

The source is up to 128 scalars or 256 UTF-16 units, the pattern up to 80 units and 16 atoms, the replacement up to 80 units, and up to 12 matches. Excess is refused rather than truncated.

How does replacement work?

Replacement is literal, with no dollar substitutions. The replaced result is limited to 400 units.

Can I use my own text file?

Yes, an optional UTF-8 file of up to 8 KiB and 256 UTF-16 units, which keeps its original line endings and BOM.

Are CSV exports safe in spreadsheets?

Yes. CSV text cells add an apostrophe for formula-leading content, while JSON retains the exact original matches.