Loading ...
Sorry, an error occurred while loading the content.
 

[NTB] Re: Seek and Destroy (Find and Replace)

Expand Messages
  • Stefan Elssner
    Dear Hubert, ... You ve mixed regular expression syntax and NoteTabs own search syntax. Try this as search string, with regular expression checked:
    Message 1 of 1 , Apr 2, 2000
      Dear Hubert,

      >
      >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
      >found.

      You've mixed regular expression syntax and NoteTabs own search syntax.
      Try this as search string, with regular expression checked:
      'References:.*$'

      '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
      '^References:.*$'
      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.

      >
      >Second issue...
      >I have lines with different 'Subject' field like :
      >Subject: NTB is ql!
      >Subject: Beer rulez!
      >Subject: Hello
      >
      >Now I'd like to replace all this lines containing subjects with the
      >one, standarized subject like:
      >Subject: Messages from 22/10/99
      >

      As you said, this works very similar:
      Use
      '^Subject:.*$'
      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.


      Regards,
      Stefan
      ---
      Stefan Elssner
      elssner@...
    Your message has been successfully submitted and would be delivered to recipients shortly.