Skip to content

Instantly share code, notes, and snippets.

@jlblancoc
Last active July 3, 2020 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlblancoc/80024010d774d8f78e0fb9ef0b804f24 to your computer and use it in GitHub Desktop.
Save jlblancoc/80024010d774d8f78e0fb9ef0b804f24 to your computer and use it in GitHub Desktop.
Regular expression: replace all C++ member variable names in a project `m_XXX` ==> "XX_" (Google style)

Search for:

([\r\n ,\.\t\[\_\*\>\(\-\!\&\{])m_([a-zA-Z0-9_]*)

Replace with:

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