Topic: STRNFILT: Enhanced LINEFILT for multiline searches (1 of 2), Read 24 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Wednesday, April 21, 2004 01:52 PM


The supplied LINEFILT.VDM {Misc, More macros, Linefilter} is intended for searching and deleting *lines* containing a search string or not.

After a posting of Bill Dedman who had to search/delete within multi-line-strings I wrote a new macro, which should help here and somewhere.

You have to give three strings:
1) the beginning of the "frame" string to search 1) in
2) the search string
3) the end of the "frame" string to search 1) in


An example:

1) <td
2) color=
3) </td>|[|X]

will find all HTML-table-datas with the string "color=" in it. After the closing tag there may be extended whitespace.


The macro is in beta test now! Comments are welcome!

http://ziemski.privat.t-online.de/vedit/macros/strnfilt.vdm


Christian

 


Topic: Re: STRNFILT: Enhanced LINEFILT for multiline searches (2 of 2), Read 23 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Tuesday, April 20, 2004 05:13 PM

I uploaded a new version with some fixes and enhancements.

It now remembers the button pressed and gives it the focus in the
next loop. So you can do the loop with ENTER.

Now there is an error message in the title bar if one of the
"frame" strings is empty.

The search string now is allowed to be empty. In this case
simply the frame strings are searched and opt. deleted.

And I've done some changes in the wording in the Dialog_Input_1().
That's one of my problems:
How can I describe it in a few *understandable* words there?

It would be nice if a native English speaking user could have a
look...

So the macro is still in beta test! Comments are welcome!

http://ziemski.privat.t-online.de/vedit/macros/strnfilt.vdm


Christian