4 Replies Latest reply on Jun 8, 2017 9:27 AM by jakec88782761

    GREP works in the InDesign UI but not in script

    jakec88782761 Level 2



      I've got a script that searches for content like this:


      section 10.1

      section 9


      I put this content into a variable called matchContent.

      I then do:

      matchContent.match ( "(?<!\\d\\.)\\d+(?!\\d?\\.)" );

      I only want to find the contents with the dot.

      But this only works in the UI. In the script it never finds the digit.


      Does anyone know why?