Skip to content

Instantly share code, notes, and snippets.

@alexserver
Created May 30, 2014 16:13
Show Gist options
  • Save alexserver/698921006bb12133015e to your computer and use it in GitHub Desktop.
Save alexserver/698921006bb12133015e to your computer and use it in GitHub Desktop.
replace single quotes by double quotes with regex in SublimeText or any editor.
//how to replace all single quotes by double quotes:
//search/replace, check regex.
//search:
'([^\']*)'
//replace:
"$1"
@hotenov
Copy link

hotenov commented Sep 15, 2022

Thanks for writing this!
For VS Code editor search pattern must be without escaping \ character, i.e. '([^']*)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment