Build safe search-and-replace regex with capture references to refactor code across many files.
## 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 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro