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

Re: [Clip] Changing double quotes to single quotes in hyperlink

Expand Messages
  • Mike Breiding - Morgantown WV
    Thanks, Axel. But, I would not no where to start... -Mike ======================
    Message 1 of 3 , Dec 13, 2011
    • 0 Attachment
      Thanks, Axel.
      But, I would not no where to start...
      -Mike
      ======================

      On 12/13/2011 4:04 PM, Axel Berger wrote:
      > Mike Breiding - Morgantown WV wrote:
      > > Anyone have any clip ideas for changing double quotes to
      > > single quotes in hyperlinks.
      > > I do not want to change the quotes in images.
      >
      > Being lazy I just post something that's part of one of my clips. You'll
      > have to make it fit your requirements:
      >
      > ^!Jump TEXT_START
      > :Loop
      > ^!Find "(?s)HREF="(http.+?)"(.*?)>" RS1
      > ^!IfError Weiter
      > ;^!Set
      > %varURL%=^$StrReplace("˜";"~";"^$GetSelection$";FALSE;FALSE)$
      > ;^!InsertText ^$FileToUrl("^%varURL%")$
      > ;^!ClearVariable %varURL%
      > ^!InsertSelect
      > ^$StrReplace("˜";"~";"^$GetSelection$";FALSE;FALSE)$
      > ^!InsertText ^$FileToUrl("^$GetSelection$")$
      > ^!Goto Loop
      > :Weiter
      >
      > Beware of two long lines, that may get broken.
      >
      > Axel
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.