๐Ÿ” Find and Replace

2 matches

Find a specific string within a block of text and replace every occurrence at once. Supports toggling case sensitivity, plus advanced pattern matching with regular expressions.

How to use

  1. Enter the text you want to search and replace within.
  2. Enter the text to find and the text to replace it with.
  3. Toggle "Case-sensitive" and "Use regex" as needed.
  4. The replaced result and match count appear automatically.

FAQ

How are regex special characters handled?

With "Use regex" off, the search text is treated as a plain string, so regex special characters (. * + ? etc.) are matched literally. Turning it on interprets the search text as a regex pattern.

Can the replacement text reference the matched portion?

With "Use regex" on, you can use capture group references like $1 in the replacement text.

What happens if I enter an invalid regex?

An error message is shown and the original text is returned unchanged.