Find and Replace Text
Find a word or phrase in a text and replace it everywhere, as plain text or with a regex. You also see how many replacements were made.
Runs on your device.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Paste the text.
- Type what to find and what to put in its place.
- Choose the options and copy the output.
Questions and Answers
Does “Whole words only” work with Persian?
Yes. For example, “کتاب” is not replaced inside “کتابخانه”, but it is replaced in “کتاب.”.
How do I keep part of the match in the replacement?
Choose Regex, put the part in parentheses, and write $1 in the replacement. For example, (\d+)-(\d+) with $2-$1 swaps two numbers.
Good to Know
Regex runs with the JavaScript engine of the browser, always with the u flag. Each run stops after 2 seconds.