About

Introduction

Find & Replace is a free online tool that allows you to easily search for a letter, number, word, or phrase in your text document and substitute it with something else. It can be very useful when it comes to editing a huge chunk of text. This tool will automatically find all exact matches and replace them all in a single click of a button.


Usage

Find & Replace is pretty straightforward to use.

  1. First, fill the "Find this" field with the word you want to change and the "Replace with" field with the new word you want to use.
  2. Next, paste your text in the text box. Alternatively, you can click the "Open File" button in the menu bar to directly load a file from your computer. See supported file extensions below.
  3. Lastly, click the "Replace All" button to start the process.

File types

The File Reader only supports opening plain text documents such as .txt, .html/.htm, .css, .js, .bat, .nfo and .md. If you are working on a rich text editor, you can just directly copy your content in the text box.

Regular Expressions

About

Find & Replace gives you an option to use Regular Expressions to perform a more complex type of search and replace operations. Below is a list of basic examples that you can use as a cheat sheet.


Basic Examples

Using the or condition to search for multiple words.


Switching the positions of the words.


Wrapping a word.


Replace only if followed by certain characters. For negation, simply replace = with !.


Matching an unknown number.


Special characters

You must place a backslash '\' before a special character. The tool will generate an error message that says: "SyntaxError: Invalid regular expression: / . ^ $ * + ? \ [ ( { |/: Unterminated character class" if you have forgotten to escape the backslash .


For example, to match Where? use Where\? - the \? is taken to mean ?.