How do I escape this with / please? <?php /**/ ());?> It seems every time I try to find it with grep, it won't find it because of the quantifiers themselves..
Not yet. Here's what I have: Sorry change to a grep to a find-perl: find //dir "*.php"|xargs perl -w -i -p -e "s/<?php \/\*\*\/ ());?>//g" Then I get error: Unmatched ) in regex; marked by <-- HERE in m/<?php /\*\*/ ()) <-- HERE ;?>/ at -e line 1.
No kidding.. Haha that's kind of funny. Can't get some of it, try it all. : ) Well, it worked. Thank you so very much.
I'm decent with regular expressions but sometimes it just doesn't work as I think it should. Usually I can correct the problem by escaping characters. As long as the characters you're escaping aren't being eval'd it's harmless to unnecessarily escape them. Like I said "When in doubt..."