1 Reply Latest reply on Apr 23, 2017 7:45 PM by Ten A

    How just change the first match in Grepchangeto

    sohrabs6818113

      Hi I wanna grep just first the first match not all of them here the example:

       

      text:

       

      PP111111

      PP222222

      PP333333

       

      and here the code

      app.findGrepPreferences.findWhat = "^PP[0-9]{6,6}?$";

      app.changeGrepPreferences.changeTo = "something";

       

       

      then I wanna text change to this:

      something

      PP222222

      PP333333

       

      how Can I do this?