2 Replies Latest reply on Sep 5, 2010 2:53 PM by Jeremy bowmangraphics

    JS, CS5, GREP Can anyone help me escape?

    Jeremy bowmangraphics Level 2

      Hello all,

       

      The following GREP expressions do just what I want them to in the UI Find/Change dialog, but I'd like to use them in a Javascript, and I'm not sure how to properly "escape" the characters that need to be escaped.

       

      The expressions are as follows.

       

      Find what:

       

      (<MD>)((?s).*?)(</MD><SD>((?s).*?)</SD>)

       

      Change to:

       

      <SD>$2</SD>

       

      I'd be extremely grateful if anyone could help me out.