Pinatool

Find & Replace

Find and replace text in documents, lists, code, and logs. Use plain-text searches or regular expressions to update matching content.

Source Text

256 characters • 4 lines

Results & Previews

2 matches found • 2 replaced

Original Matches

The quick brown fox jumps over the lazy dog.
Colour is spelled colour in British English, but color in American English.
There are vibrant colours and colorful designs everywhere.
Contact our team at [email protected] or [email protected] for assistance.

Replaced Output

The quick brown fox jumps over the lazy dog.
color is spelled color in British English, but color in American English.
There are vibrant colours and colorful designs everywhere.
Contact our team at [email protected] or [email protected] for assistance.

How It Works

1

Enter Source Text

Type or paste text, articles, code, logs, or lists directly into the editor, or click "Sample" to test with example content.

2

Configure Search Rules

Provide your target pattern and replacement text. Choose between literal text and regular expressions, toggle case sensitivity, and limit matches to whole words.

3

Preview & Export

Review side-by-side highlighted matches before and after the replacement, then copy the result to your clipboard or download it as a text file.

Find & Replace Key Features

Plain Text & Regex Support

Execute fast literal string replacements or utilize the full power of JavaScript regular expressions with capture groups and multiline anchors.

Precision Matching Controls

Fine-tune comparisons with case matching, whole-word matching, and choose between global replacements or single-instance updates.

Live Match Highlighting & Capture Groups

Inspect color-highlighted matches side by side before and after replacement, and transform structured patterns using $1, $2, and named capture groups.

Frequently Asked Questions

How do I match special characters?

In plain-text mode, characters such as ., *, ?, and $ are matched literally. When "Use Regular Expression" is enabled, prefix any special regex character with a backslash (for example, \. or \$) to match it literally.

How do multiline anchors (^ and $) work in Regex mode?

When "Multiline (^ / $)" is enabled alongside "Use Regular Expression", ^ matches the start of each line and $ matches the end of each line instead of only the start and end of the full text. This is useful for adding prefixes, suffixes, or cleaning structured lists.

Can I use regular expressions with capture groups?

Yes. Turn on "Use Regular Expression" to enable JavaScript RegExp patterns. You can reference numbered capture groups like $1, $2, the full match $&, or named capture groups like $<name> in your replacement field.

What does "Whole Words Only" do?

Whole Words Only ensures that matches are surrounded by non-word boundaries. For example, finding "cat" will match "cat" but will not match the "cat" inside "scatter" or "caterpillar". Whole-word matching limits replacements to word boundaries recognized by the tool. Boundary behavior may vary for some Unicode scripts and punctuation.

How do I replace only the first occurrence instead of all?

Toggle the replacement mode button from "Replace All" to "Replace First". The tool will replace only the first match while still reporting the total count of matches found throughout your text.

Is there a limit on how much text I can process?

The tool handles large documents, logs, and code snippets smoothly. Processing speed depends on the size of the text and the complexity of the search pattern, so very large documents or complex regular expressions may take longer to evaluate.