There's actually several lines of code, but this is the only line that will be different, the other lines are exactly the same on every page.
I'm going to do a multiline search and replace and remove all of the code. So basically I need a regular expression to match anything inside of countpage();. Or anything I can do to that line to make it matchable.
The code is included in over 200 pages so I prefer to not have to edit each one by hand. I've tried a couple of things with my limited R.E. knowledge but the program hit on nothing.
If anyone can help it'd be much appreciated. I need to get this site moved to a new server a.s.a.p.
X-Tech, thanks for the reply. I guess I should've been more specific. I'm not actually using PHP or anything, I'm using a program to do the search and replace on the files (Actual Search and Replace, to be specific).
It's got the ability for a regular expression search, I just need to match that one line. It will handle the replace and all, I just need a matchable expression. I did originally try (.*) inside of countpage() but it didn't hit on it.
It uses the "TRegExpr library", if that helps anyone. (I have no clue)
Bah, I figured it out. I thought since the program could do Phrase and Multiline searches that I could do a Multiline RegEx search. It turns out I can't. So while it won't be as easy as I wanted it, it will still be easier than editing file by file.