Find & Replace

Swap every match of a word or pattern in your text at once, with regex support when you need it.

How to use Find & Replace

  1. Paste your text into the box.
  2. Enter the text to find and what to replace it with.
  3. Turn on "Case sensitive" or "Use Regex" if you need an exact match or a pattern.
  4. Copy the result.

Reference: MDN's guide to regular expressions

Frequently asked questions

Does it replace only the first match or every match?

Every match — the search always runs with the global flag, so all occurrences get replaced, not just the first one.

What happens if I turn on regex mode and my pattern is invalid?

It catches the error and shows the JavaScript engine's own error message instead of crashing or silently failing to replace anything.

Do I need to escape special characters like . or * when regex mode is off?

No — with "Use Regex" unchecked, your search text is automatically escaped so characters like ., *, or ? are matched literally instead of being treated as regex syntax.

Community

Loading...