Topic: Re: deleting addresses in documents (1 of 1), Read 6 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Friday, October 24, 2008 04:00 PM

On 23.10.2008 23:10 in vedit-macro-language Joe Buckle wrote:
> this may be a stupid question, but, what do i put into
> that macro to detect the 'date' and 'fax'?

As Fritz already wrote: without a more concrete description your
question is hard to answer.

At least for the 'date' something like one of the following searches
should do it:

// works almost, but finds wrong "January testing 12,2008" too
Search("|<|A|*|W|D|[|D],|[|W]|D|D|[|D|D]|X", NOERR)

// is more accurate, but finds wrong "Boston 12, 2008" too

// perhaps this is the best one out of the three...

If the 'fax' line has a fixed format too, it should be possible to
create a similar expression for the end of the block to be deleted.