Find and Replace (Regex)
Find and replace text in one paste — with literal matching or full JavaScript regex, case-sensitivity and whole-word toggles, multiline / dot-all / Unicode-aware flags, and capture-group references (`$1`, `$&`, `$\``) in the replacement. Watch the live match count update as you type so you know exactly what will change before you copy.
Tóm tắt công cụ
Công cụ này nhận đầu vào có cấu trúc và trả về đầu ra xác định ngay trong trình duyệt, không tải lên máy chủ.
- Tên công cụ
- Find and Replace (Regex)
- Mục đích đầu vào
- Cung cấp nội dung nguồn để biến đổi, xác thực hoặc phân tích.
- Mục đích đầu ra
- Nhận đầu ra chuẩn hóa thuận tiện để sao chép, tái sử dụng hoặc gỡ lỗi.
- Đầu vào ví dụ
- The quick brown fox jumps over the lazy fox. Foxes are fast. Find: fox · Replace: cat · Whole word: on
- Đầu ra ví dụ
- The quick brown cat jumps over the lazy cat. Foxes are fast.
Recent inputs0
Your last 5 inputs will appear here.
The quick brown cat jumps over the lazy dog. The quick brown cat jumps over the lazy dog. cates are fast.
Replacement syntax cheatsheet
Giới thiệu công cụ
Find and replace text in one paste — with literal matching or full JavaScript regex, case-sensitivity and whole-word toggles, multiline / dot-all / Unicode-aware flags, and capture-group references (`$1`, `$&`, `$\``) in the replacement. Watch the live match count update as you type so you know exactly what will change before you copy.
Tổng quan công cụ
Most online find-and-replace tools either don't support regex or hide capture groups behind a paywall. This one runs entirely in your browser, supports every flag the underlying JavaScript engine offers, and gracefully reports invalid patterns instead of silently doing nothing. Pair it with the existing Regex Tester for crafting a pattern, then bring it here to apply the replacement at scale.
Trường hợp sử dụng
- Bulk-rename variables or imports across a pasted code block
- Reformat a list of items with a regex template
- Strip URL parameters across many lines at once
- Replace placeholder values in an email template
- Convert date formats with capture groups (e.g., 2024-01-15 → 15/01/2024)
Ví dụ đầu vào/đầu ra
The quick brown fox jumps over the lazy fox. Foxes are fast. Find: fox · Replace: cat · Whole word: on
The quick brown cat jumps over the lazy cat. Foxes are fast.
Câu hỏi thường gặp
What regex flavor is this?+
Can I reference capture groups in the replacement?+
Why is 'Whole word' disabled in regex mode?+
Will it stop on infinite-loop regex patterns?+
Khám phá thêm công cụ
Khám phá các tiện ích liên quan trong danh mục Văn bản bên dưới.
Công cụ liên quan
Tiện ích được tuyển chọn có thể hữu ích cho bạn