0 Replies Latest reply on Aug 9, 2007 6:07 PM by neutronron

    Syntax Error with RegEx Literal

    neutronron
      I'm getting a syntax error in the Flex Builder environment when I define a regEx value in literal form

      var mypattern:RegEx = /sh/i;
      Gives me the error 1083: Syntax Error: div is unexpected.

      But
      var mypattern:RegEx = new RegEx("sh", "i");
      works.

      Is there a configuration setting I can change to allow RegEx literal notation?

      Thanks,