VS Code Search and Regex/Match quoted strings

Simple pattern to match single or double quoted strings.

Section: Regex Examples

Match quoted strings

regex
regex
(["']).*?\1

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 Regex Examples
Find trailing whitespace
Match spaces at end of lines.
OpenIn sheetregexsame section
Collapse repeated blank lines
Reduce multiple blank lines to one.
OpenIn sheetregexsame section
Find TODO / FIXME markers
Locate common work markers in code.
OpenIn sheetregexsame section
Find console.log statements
Locate debugging logs in JS/TS.
OpenIn sheetregexsame section
Convert key: value style to quoted keys
Useful when massaging JS-like objects into JSON-like keys.
OpenIn sheetregex1 tag match
Toggle regex mode
Enable regular expression matching.
OpenIn sheettext1 tag match