Find and replace text
Paste your text, type what to find and what to put instead, and get the edited text with the number of replacements.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter text, find, replace with, match case, whole words only and use regular expression (regex).
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
The text is scanned from start to end and every non-overlapping match is replaced. With whole words on, a match only counts when no letter, digit or underscore touches it on either side.
Example
Inputs: Find = cat, Replace with = dog, Match case = no, Whole words only = no, Use regular expression (regex) = no. Result: Result: The dog sat on the mat. The dog slept.; Replacements made: 2.
The cat sat on the mat. The Cat slept.
The dog sat on the mat. The dog slept.
Limits and caveats
- Arabic letters attached to a word, such as و or ب, make it a different word when whole words is on.
- In regex mode, a pattern that matches empty text is rejected.
Questions about this tool
Can I use capture groups in the replacement?
Yes. In regex mode type $1 or $2 in the replacement to insert what the brackets captured. In normal mode the replacement is used literally.
How do I delete a word everywhere?
Leave the replacement box empty and every match is removed.
Does it treat similar Arabic letters as the same?
No. The search is exact, so ه and ة or ا and أ are different. Search for each spelling separately.
