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

Re: [Clip] Insert blank line between every line of text

Expand Messages
  • bruce.somers@web.de
    Insert blank line between every line of text is without meaning. Do you mean after each line of text or between each pair of successive lines of text ?
    Message 1 of 11 , Oct 6, 2008
      "Insert blank line between every line of text" is without meaning.

      Do you mean "after each line of text" or "between each pair of successive lines of text"?

      English can be neater and cleaner than you realize.

      Bruce
    • Flo
      ... Here s another one that true RegEx-aesthetes certainly would prefer... ^!Replace (?
      Message 2 of 11 , Oct 13, 2008
        --- In ntb-clips@yahoogroups.com, "Flo" <flo.gehrke@...> wrote:
        >
        > Alec,
        >
        > Why don't you write...
        >
        > ^!Replace ".\K\r\n(?!\r\n|\Z)" >> "\r\n\r\n" AWRS
        >
        > ...to prevent empty lines from being doubled?
        >
        > Flo

        Here's another one that true RegEx-aesthetes certainly would prefer...

        ^!Replace "(?<!^)\r\n(?!\r\n|\Z)" >> "\r\n\r\n" AWRS

        Matches a CR/NL which is not positioned at start of a line (i.e. in
        an empty line) and which is not followed by another CR/NL or which is
        not positioned at end of subject (\Z), followed by an empty line.

        Flo
         
      Your message has been successfully submitted and would be delivered to recipients shortly.