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

24192RE: [Clip] Re: Simple search and replace

Expand Messages
  • John Shotsky
    Nov 27, 2013
    • 0 Attachment

       

      Put it in a clip by itself, save, and then run it on a small piece of text in a new document that has the line that you want fixed. I have a 'scratch area' called QT1 in which I put simple bits of code so I can test them independently. When it works, I copy it to a larger clip, delete what is in QT1, waiting for the next 'quickie test'. This way, you focus on only one thing at a time, and when that works, you can put it into a bigger clip where it is then known to work, and then you can look at other bits to see where problems are. If you have a larger clip that you want to test, insert a ^!GoTo Exit at the point at which you want to stop the execution, and then use QT1 to see your command of interest run.

       

      If it still doesn't work, post a bit of the actual text - it always helps to know what the text actually looks like at the point that you are trying to modify it, which is why the 'gotoexit' trick is so useful.

      Regards,
      John
      RecipeTools Web Site: http://recipetools.gotdns.com/
      John's Mags Yahoo Group:  http://groups.yahoo.com/group/johnsmags/

       

      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Mike Breiding - Morgantown WV
      Sent: Wednesday, November 27, 2013 06:49
      To: ntb-clips@yahoogroups.com
      Subject: [Clip] Re: Simple search and replace

       

       



      On 11/27/2013 8:56 AM, ntb-clips@yahoogroups.com wrote:

      > Tue Nov 26, 2013 12:46 pm (PST) . Posted by:

      > "John Shotsky" shotsky1
      > <mailto:jshotsky@...?subject=Re%3A%20Simple%20search%20and%20replace>

      > I don't see value in the find, when a simple replace would seem to do
      > the correct thing:
      > ^!Replace "jpg(?=\"><img)" >> "php" ARSW

      Hi John,
      I added the above line to the clip but nothing happens.
      Not knowing exactly where it should go I tried it various places in the
      original clip.
      No error, no replacement.
      Thanks,
      -Mike
      mike@Wild

      >
      > Regards,
      > John

      ---
      This email is free from viruses and malware because avast! Antivirus protection is active.
      http://www.avast.com

    • Show all 4 messages in this topic