Forum Moderators: open
Got about 250 files with the code below in them, which I need to change, but when I try a find and replace, it doesn't find the code, even though I have copied and pasted the exact code from one of the pages ;-(
<!--webbot bot="Include" U-Include="../includes/index.htm" TAG="BODY" --></td>
Any help much appreciated.
Dexie.
Now, before you open the Find/Replace window, first click the HTML tag to get the HTML view of your page. Highlight the exact phrase you want to replace and hit CTRL H. Make sure you are on the Replace Tab. If the line is breaking, this could be the problem. The Find/Replace command will only work on a non-breaking search.
In the Find/Replace window, under Search Options, under Find Where, click the All Pages radio button. The "Find in HTML" will now be shown, and make sure to do the tick mark beside it.
IMPORTANT! Before you let it rip and hit the Replace All, make sure your replacement text is exactly what you want, because you cannot undo a global Find/Replace command.
Hope that helps!
WFN
Apologies, perhaps I should have reworded that a bit more - been using fp for about 5 years and have used the f and r almost daily ever since, but, as mentioned, even though the code for the include *does* exist in the html, it still doesn't find them ;-(
Anyone here use a good external find and replace prog please?
Dexie.
<!--webbot bot="Include" U-Include="../includes/index.htm" TAG="BODY" --> Hello Dexie, I've not transitioned to FP2003 as of yet but the problem you describe is inherent in FP2002 and prior versions. I'm not sure why this is, but there is a workaround if all you need to do is change something within the include statement. For example, if you need to change the URI reference, enter just a portion of the include into the find/replace fields.
U-Include="../includes/index.htm Avoid using any part of the opening and closing portion of the include...
<!-- or
--> While you are at it, you might as well correct case on those along the way. I'd change everything to lowercase, its just a pet peeve of mine. ;)
="include" u-include="../includes/index.htm" tag="body"
I'm trying to get rid of this whole line
<!--webbot bot="Include" U-Include="../includes/index.htm" TAG="BODY" --></td>
and replace it with another completely different line of text, that wouldn't be an include.
Any ideas very much appreciated.
Dexie.