2 Replies Latest reply on Aug 7, 2012 8:18 AM by ax1e2l_b3r4a5s6s

    applescript - grep

    ax1e2l_b3r4a5s6s Level 1

      I'm trying to use grep to find , literally,

       

      "\psz"

       

      in the string

       

      "ipsum lorem yada yda \psz 6p% drago indigato blah blah

       

      set find what of find grep preferences to "\psz"

       

      doesn't work.  Doesn't compile, nor would I expect it to

       

       

      set find what of find grep preferences to "\\psz"

       

      doesn't work.  Probably something to do with quoting the \\.

       

      used find grep a fair amount, first time I've searched for a \ in a string.


       

      Anyone have any suggestions on this, please?

       

      Thank you in advance for your help.