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

Re: [Clip] Replacing characters from middle of string

Expand Messages
  • Anwar Ahmad
    Don Thanks for the code. Kind Regards ________________________________ From: Don Daugherty To: ntb-clips@yahoogroups.com Sent: Thu, February
    Message 1 of 11 , Feb 26, 2010
    • 0 Attachment
      Don

      Thanks for the code.

      Kind Regards




      ________________________________
      From: Don Daugherty <daugherty@...>
      To: ntb-clips@yahoogroups.com
      Sent: Thu, February 25, 2010 9:05:56 PM
      Subject: Re: [Clip] Replacing characters from middle of string

       
      On 2/25/2010 2:52 AM, Anwar Ahmad wrote:
      > Text:
      > 'non linear' za'id 'we', 'they'.
      >
      > Expected:
      > ‘non linear’ za’id& #8216;we& #8217;,&# 8216;they& #8217;.
      >
      >
      See if this works
      ^!SetDebug On
      ; Single quote and word at start of line
      ^!Replace "^'([A-Za-z] )" >> "\&\#8216;$1" RWAS
      ; Single quote and word after a space
      ^!Replace " '([A-Za-z])" >> " \&\#8216;$1" RWAS
      ; All other Single quotes
      ^!Replace "'" >> "\&\#8217;" RWAS

      It should unless some of your words begin or end with characters other
      than letters A thru Z or a thru z






      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.