Created
July 15, 2019 11:22
-
-
Save thomasxbanks/c36de51908ea3196ef6aec2db285b652 to your computer and use it in GitHub Desktop.
regex Search: Uncommented console.logs
This file contains hidden or 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
| \w*(?<!\/\/)console.log |
Author
matches // console.log(
found this
^( *)(?!# console)((console\.log)+.*)$
src: https://regex101.com/library/buRyeO?filterFlavors=javascript&orderBy=MOST_RECENT&page=4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finds all uncommented
console.logthat aren't preceded by//Useful for dropping into global search in VS Code for find/replace comment/uncomment of logs