Find and Replace — Text String Replacement
TextFind and replace is a text tool that replaces every occurrence of a specific string with another string.
What is it
Find and replace is a basic editing operation for updating repeated words or strings in documents, code, and lists. This tool performs literal string replacement in the browser.
result = input.split(find).join(replacement)
How to use
- 1Enter the text.
- 2Enter the string to find and the replacement string.
- 3Press replace and read the result.
Reference
| Input | Find | Replace | Result |
|---|---|---|---|
| apple apple | apple | orange | orange orange |
| a-b-c | - | / | a/b/c |
Sources & standards
- MDN Web Docs: Client-side web APIs - MDN Web Docs
FAQ
Does find and replace support regular expressions?
No. The current tool supports literal string replacement for predictable results.
Is find and replace input sent to a server?
No. This tool runs in your browser and does not send input to a server.