Topic: Search and replace multiple lines? (1 of 3), Read 112 times
Conf: Search and Replace
From: Bill Dedman
Date: Saturday, April 17, 2004 12:31 AM








I'm a new user struggling in Wildfile to search and replace multiple lines in multiple files (in Office-created HTML files)

If I try to paste those multiple lines into the search box, only the first line will take (the line break stops it). How do I get around this? I've tried to insert end of line and beginning of line characters for VEDIT, but that fails.

Thanks, and here's an example:

th:204pt'
x:num>2003
face=3D"Verdana">DNR

 


Topic: Re: Search and replace multiple lines? (2 of 3), Read 119 times
Conf: Search and Replace
From: Ted Green
Date: Saturday, April 17, 2004 09:38 AM

At 12:31 AM 4/17/2004, you wrote:
>I'm a new user struggling in Wildfile to search and replace multiple lines in multiple files (in Office-created HTML files)
>
>If I try to paste those multiple lines into the search box, only the first line will take (the line break stops it). How do I get around this? I've tried to insert end of line and beginning of line characters for VEDIT, but that fails.

Multiple lines in a search string must be separated with "|N". However, note that the max search string length is 256, which your example would exceed. You could use the "|M" wildcard to match multiple "dont care" characters in order to keep the search string under 256.

In your separate email to me, you also asked how to perform multiple search and replace within Wildfile. The solution is to create a VEDIT macro file (just a text file with a .VDM extension) containing e.g.:

Replace("oldstring1","newstring1",BEGIN+ALL+NOERR)
Replace("oldstring2","newstring2",BEGIN+ALL+NOERR)
...

Then run Wildfile and select to run a macro; at the prompt enter the filename of the macro you just created.

Ted.


Ted.
-------------------------------------------------------------------------
Ted Green (ted@...) Greenview Data, Inc.
Web: www.... PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 Fax: (734) 996-1308 VEDIT - Text/Data/Binary Editor
-------------------------------------------------------------------------
Spam problems? www.SpamStopsHere.com blocks 99% of spam for businesses.

 


Topic: Re: Search and replace multiple lines? (3 of 3), Read 122 times
Conf: Search and Replace
From: Pauli Lindgren
Date: Friday, April 23, 2004 10:21 AM

On 4/17/2004 9:38:51 AM, Ted Green wrote:
>At 12:31 AM 4/17/2004, you
>wrote:
>
>Multiple lines in a search string must be separated with
>"|N". However, note that the max search string length is
>256, which your example would exceed. You could use the "|M"
>wildcard to match multiple "dont care" characters in
>order to keep the search string under 256.

Another method would be this:
1. Copy the lines to be searched into text register 1
2. Copy the replace text in text register 2
3. Enter "|@(1)" as the search string and "|@(2)" as the replace string (without the quotes).

I haven't tested this with wildfile, but at least it works with normal replace dialog. But the 256 character limit is still there.

--
Pauli