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

23807Re: [Clip] Selective line merging

Expand Messages
  • flo.gehrke
    May 23, 2013
      --- In ntb-clips@yahoogroups.com, "John Shotsky" <jshotsky@...> wrote:
      > To state the task:
      > A line of nothing but numbers and spaces, followed by a line of
      > characters and spaces, followed by a line of numbers which include
      > at least one colon and spaces should become one line.
      > ;Trim off trailing spaces
      > ^!Replace "\x20+$" >> "" ARSW
      > ;Merge sections
      > ^!Replace "^(\d+)\R(.+)\R(\d.*:.*)$" >> "$1 $2 $3" ARSW

      Isn't it just a matter of replacing each CRNL with a space except before numbers from 1 through 9 ? So there would be nothing to store and repeat with back reference.

      The only condition: No runtime >= 10 hours ;-)

      ^!Replace "\R(?![1-9])" >> "\x20" WARS
      ^!Menu Modify/Spaces/Single Space
      ^!Jump 1

    • Show all 6 messages in this topic