Topic: Some text filters. Hope you like em! (1 of 1), Read 123 times
Conf: Search and Replace
From: Deleted User
Date: Wednesday, December 12, 2001 08:34 PM

Some text filters you might try and test. (Please back-up any input before using!)

double space: Replace("|L", "|L|L",BEGIN+ALL+NOERR)

replace 1 or more space and/or tab characters with a single space:
Replace( "|W", " ", BEGIN+ALL+NOERR)
note: the replacement string is a single space

trim trailing whitespace: Replace("|W|>","",BEGIN+ALL+NOERR)
note: the replacement string is a nul string

delete all blank lines : Replace("|<|[|W]|L","",BEGIN+ALL+NOERR)
note: the replacement string is a nul string

replace multiple adjacent blank lines with a single blank line:
Replace( "|<|[|W]|L|[|W]|>", "", BEGIN+ALL+NOERR).
note: the replacement string is a nul string

("Delete blank lines" is in "keymac.lib" file as supplied by Greenview)