Dale:
On Sat, 11 Dec 2004 19:53:00 -0500, you wrote:
>I'm having trouble getting Search and Replace to do what I need.
>I need to go through a file line-by-line, and in each line I need
>to find every third instance of "XXXXX" and replace that with
>"YYY" [...]
Try it with the following:
Begin_Of_File
while (! At_EOF) {
Search_Block("XXXXX", BoL_Pos, EoL_Pos, NOERR+COUNT,3)
if (! Error_Match) {
Replace("XXXXX", "YYY")
}
Line(1, NOERR)
}
Christian
|
|