On 3/5/2010 4:14:55 PM, Christian Ziemski wrote:
>That could be done by:
That is what I thought. Why to search for beginning of line if you are just searching the word anywhere in the line? The pattern code probably significantly slows down the operation.
Another problem with the original solution is the code |s. If the word "boost" is the first word on the line, the previous line is deleted instead of the searched line.
On the other hand, you can do the same with a single replace command:
Replace("|<|*boost|Y|N", "", ALL)
Or, in the example case, if the folder name must begin with string "boost", you could use:
Replace("|<|*/boost|Y|N", "", ALL)
Alternatively, you could enter the search string and an empty replace string interactively in the replace dialog.
However, the repeat loop without pattern codes is probably faster.