5 Replies Latest reply on Oct 29, 2015 1:38 PM by Christopher Pickering

    Grep search only on current page, return array of "find all"

    Christopher Pickering Level 1



      Is there a way to grep search only the current page, or any chosen page in my document (myDocument.pages[i])?

      I can only manage to search the document.


      app.findGrepPreferences = app.changeGrepPreferences = null;

      app.findGrepPreferences.findWhat = "Chapter (\d+)";



      Also, is there a way to return the contents of the find? In this case I want the $1 of this search..

      var a =  myDocument.findGrep().?


      Thank you,