5 Replies Latest reply on Oct 3, 2008 9:59 AM by Gregory Lafrance

    Regex to check if there is a string inside another string

    nikos101 Level 2
      What is the best regex to check if there is a string inside another string?

      This doesn't work:

      var regex:RegExp = new RegExp("/^.+" + myString + ".+$/");