Find and Replace with Regex
Find and replace text using full regular-expression patterns with flags. Supports global, case-insensitive, and multiline modes. Runs in your browser.
Pure browser JavaScript (native RegExp) — no libraries required.
How to use this tool
- Paste your text.
- Enter a regex pattern in Find and a replacement in Replace with.
- Toggle flags and click Replace.
Find and replace text using full regular-expression patterns with flags. Supports global, case-insensitive, and multiline modes. Runs in your browser.
Frequently asked questions
- Do I need to escape special characters?
- Yes — regex metacharacters like . * + ? ( ) [ ] { } \ | ^ $ must be escaped with a backslash if you want them literally.