Quick Tools Logo Quick Tools

Find & Replace

Find and replace text with advanced options.

📘 How It Works

1

Pattern Construction

The search term is converted to a regular expression. Special regex characters are escaped unless 'Use regex' is enabled. The global flag ensures all matches are found.

2

Case Sensitivity

When case-insensitive, the regex uses the 'i' flag. 'Hello' will match 'hello', 'HELLO', and any mixed case variation.

3

Whole Word Matching

Word boundaries (\b) are added around the pattern when 'Whole word' is checked. This prevents partial matches like 'cat' in 'category'.

4

Global Replacement

JavaScript's replace() with global regex replaces ALL occurrences in one pass. The replacement count is shown for verification.

5

Regex Power Features

With regex enabled, use capture groups, alternation, quantifiers, and other pattern features. Replacement text can use $1, $2 for captured groups.

💡 Common Use Cases

Bulk Text Editing

Replace consistent terminology throughout documents. Change company names, product names, or terminology in one operation.

Code Refactoring

Rename variables, functions, or classes across code files. Use whole-word matching to avoid partial replacements.

Data Cleaning

Standardize formats, fix typos, or convert date formats in bulk. Use regex for pattern-based replacements.

Template Processing

Replace placeholder variables like {{name}} with actual values when generating personalized content.

Format Conversion

Convert between formats: mm/dd/yyyy to yyyy-mm-dd, straight quotes to curly quotes, or tabs to spaces.

Privacy Redaction

Replace sensitive information (emails, phone numbers) with redacted versions using regex patterns.

Related Text & String Tools