Back

Find and replace

Text tools

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Replace literal text or JavaScript regex matches with optional case and global controls.

Common uses

  • Replace literal text or JavaScript regex matches with optional case and global controls.
  • Enter source, a nonempty search string and replacement; choose plain text or regex mode.

How to use it

  1. 1.Enter source, a nonempty search string and replacement; choose plain text or regex mode.
  2. 2.Choose first or all matches and case sensitivity, then inspect match count and output.

Limits and notes

  • Plain replacement keeps $ literal; regex supports $1 and $&. Computation uses a terminable Worker with a 900ms timeout: 200,000 input, 2,000 pattern, 20,000 replacement and 500,000 output characters, up to 5,000 matches.

Frequently asked questions

What does this tool do?

Replace literal text or JavaScript regex matches with optional case and global controls.

What should I check before using the result?

Plain replacement keeps $ literal; regex supports $1 and $&. Computation uses a terminable Worker with a 900ms timeout: 200,000 input, 2,000 pattern, 20,000 replacement and 500,000 output characters, up to 5,000 matches.

Related tools