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

Re: [Clip] Add a to every line, clip needed

Expand Messages
  • Axel Berger
    ... No, the caret on its own means nothing. This ought to work: ^!Replace ^(.+?)$ $1 HRAS It only looks for lines with a content of at least one
    Message 1 of 16 , Apr 6, 2009
      Don Daugherty wrote:
      > How about this: ^!Replace "^" >> "<br>" RHSA

      No, the caret on its own means nothing. This ought to work:

      ^!Replace "^(.+?)$" >> "<br>$1" HRAS

      It only looks for lines with a content of at least one character, not
      empty ones. For the latter case use

      ^!Replace "^(.*?)$" >> "<br>$1" HRAS

      instead.
      Axel
    • Sheri
      ... Better go back to regex school. :D Regards, Sheri
      Message 2 of 16 , Apr 6, 2009
        --- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
        >
        > Don Daugherty wrote:
        > > How about this: ^!Replace "^" >> "<br>" RHSA
        >
        > No, the caret on its own means nothing.

        Better go back to regex school. :D

        Regards,
        Sheri
      • Axel Berger
        ... If you say so, I d better take heed. Thanks for the correction Axel
        Message 3 of 16 , Apr 6, 2009
          Sheri wrote:
          > Better go back to regex school. :D

          If you say so, I'd better take heed.

          Thanks for the correction
          Axel
        • gunnisonbirder
          ... This works great! Thanks!
          Message 4 of 16 , Apr 6, 2009
            --- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
            >
            > gunnisonbirder wrote:
            > > Is it because I am using notetab pro ver: 5.61?
            >
            > Yes it is, that clip is in the old syntax. The following is untested
            > but ought to work:
            >
            > H="Add <br>"
            > ; select one line or many lines you wish to add the suffix to.
            > ; run clip
            > ^!Replace "(\R)" >> "<br>$1" HRSA
            >
            > Axel
            >

            This works great! Thanks!
          • Bert Byfield
            Here s what I ended up with (uses a choice of prefixes): Insert Prefix to Lines 2 ; this one leaves empty lines alone: ; ^!Replace ^(.+)$
            Message 5 of 16 , Apr 6, 2009
              Here's what I ended up with (uses a choice of prefixes):

              Insert Prefix to Lines 2
              ; this one leaves empty lines alone:
              ; ^!Replace "^(.+)$" >> "^?[(T=C;H=6)Prefix to Insert is
              =_!|//|rem|;|'|^T]$1" HRAS
              ; this one inserts the prefix on empty lines too:
              ^!Replace "^(.*)$" >> "^?[(T=C;H=6)Prefix to Insert is
              =_!|//|rem|;|'|^T]$1" HRAS

              (The Replace lines are split by my mail program)
            Your message has been successfully submitted and would be delivered to recipients shortly.