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

22257Re: [NTB] deleting a line with 1-3 'random' digits

Expand Messages
  • Marcelo Bastos
    Oct 5, 2011
    • 0 Attachment
      Interviewed by CNN on 05/10/2011 22:30, connie told the world:
      > Hi,
      > In a copied page of posts from a Yahoo Group, there would be several lines like the following:
      > Reply | Messages in this Topic (79)
      > - with Word I can insert codes for "any digit" and remove (replace with either blank or space) all those lines in three passes, but I haven't been able to figure out how to do the same with Note Tab Lite.
      > I'm hoping someone will kindly give the solution.

      Oh, that's easy... if you use regular expressions, which is kind of the
      "advanced mode" of Search & Replace.

      Regular expressions (regexps for short) not only have codes for "any
      digit" but also for a lot of other neat stuff.

      In your example, I would search for the following regexp:

      Reply \| Messages in this Topic \(\d+\) \r\n

      and replace it with a blank string. It should get all the lines in a
      single pass, no matter how many digits long is the number.

      (Note: the blank spaces after the closing parenthesis match the blank
      spaces on your example string.)


      This message has been protected with the 2ROT13 algorithm. Unauthorized
      use will be prosecuted under the DMCA.

      ... Sent from my magic mirror.
      *Added by TagZilla 0.066.2 running on Seamonkey 2.4 *
      Get it at http://xsidebar.mozdev.org/modifiedmailnews.html#tagzilla
    • Show all 3 messages in this topic