2 Replies Latest reply on May 25, 2013 8:51 AM by Marco Lugli

    Get the searching result of a RegEx search

    Marco Lugli Level 1

      Hi, I have a RegEx search which does something like this:

       

      var k = new RegExp('myRegExpression');

      if(myText.match(k)){

           do something..

      }

       

      How can I get the searching result of my RegExp via scripting?

       

      From within Indesign, I think this value is returned by the expression "$0"

       

      Thanks in advance