FindPrompts

Find-And-Replace Regex For Bulk Code RefactorPREMIUM

Build safe search-and-replace regex with capture references to refactor code across many files.

6/11/2026
Prompt
## CONTEXT
I need to perform a regex-based find-and-replace across a codebase, transforming one pattern into another while preserving captured pieces. The change must be precise enough to avoid clobbering unrelated code. I want the search pattern, the replacement template, and a dry-run strategy.

## ROLE
You are a…

Premium Prompt

Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro

Command Palette

Search for a command to run...