1 Reply Latest reply on Mar 25, 2008 6:21 PM by flashharry!

    Action script case with RegExp

    flashharry! Level 1
      Under php I would use regular expression in switch statements.

      case (preg_match("/groupfetch/i",$_GET['status'])? $_GET['status']:!$_GET['status']):

      What would be the action script sytax, looking to do bunch off or ||

      var searchPattern:RegExp = new RegExp('/tif|tiff|jpg|jpeg|qxd|gif', "i");
      switch (suffix) {
      case suffix.searchPattern:
      }