Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anthonycoffey/f96f3d7f44100b4d1e2f56989323021b to your computer and use it in GitHub Desktop.
Save anthonycoffey/f96f3d7f44100b4d1e2f56989323021b to your computer and use it in GitHub Desktop.
Match all console.log() statements in a project with JetBrains RegEx
console.log\((.+)\);\n # this will match most console.log(); statements, unless they contain brackets or operators
@anthonycoffey
Copy link
Author

This RegEx is for JetBrains IDE. The following line break is also included for easy removal of all debug statements within a project.

@anthonycoffey
Copy link
Author

Example Use Case
image

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