Skip to content

Instantly share code, notes, and snippets.

@CodeMouse92
Created February 24, 2021 01:54
Show Gist options
  • Save CodeMouse92/bbfb06ceb5c1274497b2fcae2b919904 to your computer and use it in GitHub Desktop.
Save CodeMouse92/bbfb06ceb5c1274497b2fcae2b919904 to your computer and use it in GitHub Desktop.
Useful Search Regexes
# Replace all instances of string with std::string,
# without clobbering include statements, names, or anything with "string" in the name.
FIND ((?<!#include )[^\w>:\.])(string)([^\w])
REPLACE $1std::$2$3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment