Created
February 24, 2021 01:54
-
-
Save CodeMouse92/bbfb06ceb5c1274497b2fcae2b919904 to your computer and use it in GitHub Desktop.
Useful Search Regexes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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