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
Search("^[A-Z][a-z]+[\s\t]+[0-9][0-9]?,[\s\t]*[0-9][0-9][0-9]?[0-9]?[\s\t]*$",
REGEX+NOERR)
// perhaps this is the best one out of the three...
Search("|<|{January,February,March,April,May,June,July,August,September,October,November,December}|W|D|[|D],|[|W]|D|D|[|D|D]|X",
NOERR)
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.
Christian
|
|