4 Replies Latest reply on May 15, 2013 4:21 PM by thomblak

    Grep expression not working in JS

    thomblak

      This grep expression works fine in the dialog box

      (.+) ~%(.+)~y

       

      But not in script

       

      app.findGrepPreferences.findWhat = "(.+) ~%(.+)~y";

      app.changeGrepPreferences.changeTo  = "$1~y";

      myDocument.changeGrep();

       

      Is there something I need to escape?