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

Re: [Clip] using regex $1 followed by a number ... how to

Expand Messages
  • flo.gehrke
    ... I agree with you, Don. When running... ^!Replace ( w)( w)( w)( w)( w)( w)( w)( w)( w)( w)( w)( w)( w)( w)( w) K( w) $16 0 WRS against...
    Message 1 of 5 , Dec 30, 2011
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, Don <don@...> wrote:
      >
      > so help appears to be half right :-)

      I agree with you, Don. When running...

      ^!Replace "(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)\K(\w)" >> "$16\0" WRS

      against...

      ABCDEFGHIJKLMNOP

      the 'P' will be replaced with 'P0'.

      '\$' -- is definitely wrong. Try '\$16\0' and you'll get '...NO$160'.

      Instead of using a backslash you could also write the '0' in hex and replace with '$16\x30'.

      Regards,
      Flo


      P.S. Did anyone make list of errors in the Help file?
    Your message has been successfully submitted and would be delivered to recipients shortly.