Text Replace
Online text find and replace tool with support for regex, whole word, and case sensitivity.
Usage
1Modes
Auto apply: Right side shows Replace All preview; input not modified.
Manual: turn off Auto apply; use Step replace / Replace All to build preview; input unchanged.
2Replace actions
Step replace: each click replaces the next match in order.
Replace All: replace all matches at once.
Copy Output: copy the right preview text.
Clear Input: clear left input.
3Match options
Case sensitive: exact case match when enabled.
Whole word: via \b boundaries; best for Latin/number, limited for CJK.
4RegExp and flags
When RegExp is off, search text is treated as literal (escaped).
m (multiline): ^/$ match line start/end.
s (dotAll): dot matches newline.
i (default): used when Case sensitive is off.
5Common Regex
Find numbers: \d+
Match email: [\w.-]+@[\w.-]+\.\w+
Match phone: 1[3-9]\d{9}
Match URL: https?://[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&\'()*+,;=]*
Match IP: \b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b
Match Chinese: [\u4e00-\u9fa5]+
Lines starting with TODO (enable m): ^TODO.*$
Multiline block: start[\s\S]*?end
(or enable s and use .*)
Capture group replacement: (\w+)@(\w+\.\w+)
Replace with: $2@$1 (swap username and domain)
6Examples
Input Text
请联系 [email protected] 或 [email protected]
Find
(\w+)@(\w+\.\w+)Replace With
$2@$1Output Result
请联系 example.com@support 或 company.org@admin
About This Tool
This is a powerful batch text processing tool. It allows you to find and replace text using simple strings or complex regular expressions. You can precisely control whether to be case-sensitive or perform whole-word matching. The tool provides instant replacement preview and supports processing multi-line text. All operations are done locally.
Features
- 🔍 Find + Replace: single or replace-all
- 🔤 Case sensitive and whole word
- 🧩 RegExp options: m (multiline) and s (dotAll)
- 📋 One-click copy output
- 🔒 Local-only processing: no data upload