[NTB] Re: Seek and Destroy (Find and Replace)
- Dear Hubert,
>You've mixed regular expression syntax and NoteTabs own search syntax.
>I'd like in NTP to replace lines containing for example References
>field with nothing (simply delete this lines).
>With Find and Replace dialog box I tried to find 'References:*^P' but
>this does not work (both for regular expresion option checked &
>unchecked). I used to get a message saying that this string was not
Try this as search string, with regular expression checked:
'References:' is clear. The period '.' means 'any character'. The
asterisk means 'the preceding char zero or more times', the $ sign
means 'line end'.
If you are sure the 'References:' you search for is exactly at the
beginning of the line, you could use
were '^' stands for 'beginning of line'
NoteTab uses a regexp syntax that is not always the same as described
in other sources, but it's well documented in the help.
I have at least one good short overview on regular expressions at hand,
if you like I would send it to you via email. Please drop a note to my
private e-mail below, if you are interested.
>As you said, this works very similar:
>I have lines with different 'Subject' field like :
>Subject: NTB is ql!
>Subject: Beer rulez!
>Now I'd like to replace all this lines containing subjects with the
>one, standarized subject like:
>Subject: Messages from 22/10/99
as search string (with regular expression checked),
'Subject: Messages from 22/10/99' or whatever as replace string.
BTW, I use Forte Free Agent as my news reader.