🔎 查找替换Find & Replace
支持普通文本与正则表达式替换,可设置区分大小写、全词匹配。替换结果实时预览,并显示替换次数。Plain text or regex replacement with case-sensitive and whole-word options. Results preview live with a replacement count.
① 输入文本① Input
② 替换规则② Replace rule
③ 替换结果③ Result
使用说明How to use
- 输入原文Enter the source text
- 填写查找与替换内容,可选正则、区分大小写、全词Set find/replace; regex, case, whole-word optional
- 查看替换结果与替换次数Review result and replacement count
示例:把 cat 全部替换成 dogExample: Replace all "cat" with "dog"
全程在你的浏览器本地完成,文本不会上传服务器。Runs entirely in your browser; your text is never uploaded.
开启「正则表达式」后,查找框可填写如 \d+、colou?r 等表达式;开启「全词匹配」会自动在两侧加边界,避免替换单词的一部分。替换框留空表示删除匹配内容。还可开启「通配符 *」:查找框用 * 代表任意内容(如 [[*]] 一次性清除 [[11]]、[[1]] 等标记),替换框填 $1 可只保留 * 部分、$& 保留整体;「跨行」让 * 跨越换行。With “Regular expression” on, the find box accepts patterns like \d+ or colou?r. “Whole word” adds boundaries so only full words match. Leave replacement empty to delete matches. You can also turn on “Wildcard *”: use * for anything (e.g. [[*]] clears marks like [[11]], [[1]] at once); in replacement $1 keeps only the * part, $& keeps the whole match. “DotAll” lets * span newlines.