Find and replace

Replace across a whole block of text, literally or by regular expression, with the capture groups available in the replacement.

Result
The result appears here
Nothing matched yet. The search text is taken literally, so regex characters need no escaping.

Questions

When should I turn on regex?+

When the thing you are replacing varies: a version number, a path with a changing segment, a whole line matching a shape. For a plain string leave it off and nothing needs escaping.

Can I reuse part of the match?+

Yes, in regex mode: $1 and $2 for the capture groups, $& for the whole match. That is how you rewrite an import rather than just deleting it.

Does it change my file?+

No. It works on the text in the pane and gives you the result to copy back, so nothing happens to anything on disk.

Related tools

The tools are free. So is most of the library.

1935 blocks and 989 pieces for shadcn/ui and Tailwind, built on the same tokens these tools write. Install one with a command and the code is yours.

No signup for the tools. MIT for free blocks, commercial licence for Pro.

Markdown version