Require the closing quote to match the opener.
Section: Backreferences
Matching quote pair
regex
regex
(["\']).*?\1Explanation
Captures either single or double quote and requires the same closer.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Backreferences