/ Published in: Regular Expression

Regular Expression to find native Javascript console and AngularJS $log log warn or info that are NOT comments / commented out
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/^(\s*)?[^\/]{0,2}((\$log|console)\.(warn|log|info))(.*)$/gmi in Sublime Text: ^(\s*)?[^\/]{0,2}(\$log\.(warn|log|info))(.*)$ test/play here: http://refiddle.com/refiddles/js-and-angular-non-comment-logs
URL: http://refiddle.com/refiddles/js-and-angular-non-comment-logs
Comments
