Pattern / replacement / text
\d+ → [N] / abc 123 def 456
Output
abc [N] def [N]
Text Tools
Run regular-expression find and replace with custom flags and capture-group backreferences such as $1. Batch text cleanup stays in your browser.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
文本处理
等待输入
Pattern / replacement / text
\d+ → [N] / abc 123 def 456
Output
abc [N] def [N]
Yes. Use $1, $2, and similar backreferences in the replacement string.
No. Replacement runs locally in your browser.
Tools
Continue with another translated tool for a nearby task.
Regex Tester
Test JavaScript regular expressions with live highlighting, match counts, capture groups, flag toggles, and built-in pattern presets. Matching runs locally in your browser.
Regex Extractor
Extract every regex match from text with flags, capture groups, expand-all groups, dedupe, and multiple output formats for log fields and structured collection.
Remove Duplicate Lines
Remove duplicate lines from multiline text with options to ignore case, trim edges, keep first-seen order, and review frequency stats. Processing stays in your browser.