Considering switching the regex to:
this is safer, but assumes statements are on separate lines, which isn't always the case.
Code:
"^\s*(YAHOO.log|Y.log|console.log)\s*?\(.*\);\r?\n"
this is safer, but assumes statements are on separate lines, which isn't always the case.