I'm trying to replace this block of code on a website tree of mine and am having some strange problems. If I load a test file from the directory that I'm searching and do a test find it works well, but when I hit Replace All it doesn't replace anything - even in the test file!
Perhaps the line terminators in your files are not carriage return and linefeed? In that case, you'll need to use a regular expression.
An indeterminate number of end of line characters can be matched with [[:space:]]* (or "\b"), and it will be necessary to escape all instances of ?*(){} with \.