RichMarkdown › Text tools › Find and replace

Find and replace

Replace a word everywhere, only as a whole word, or with a regular expression: rearrange dates, remove line numbers, add a prefix to every line.

Runs in your browser. Your text is not uploaded or stored on a server.

How to use it

  1. Paste the text.
  2. Type what to find and what to put instead; the result updates as you type.
  3. Tick “Regular expression” for patterns. Use $1, $2 for groups and \n for a new line.

When it helps

Need to write and format, not just clean? The RichMarkdown editor turns rich text into Markdown and Word files.

More text tools

Clean up text

Words and case

Convert formats

Encode and decode

Questions

Some regex examples?

^ with replacement - adds a dash to every line. (\d{4})-(\d{2})-(\d{2}) with $3/$2/$1 turns 2026-11-06 into 06/11/2026. \s+$ with nothing removes spaces at line ends.

Is it the same as in the editor?

The RichMarkdown editor has find and replace too (Ctrl+H), for formatted documents.