package{ import flash.display.Sprite; import flash.utils.*; public class Main extends Sprite{ public function Main(){ var reCase:RegExp = new RegExp("abc"); var sVal:String = new String("aBcdefabCdefABC"); var aMatch:Array = reCase.exec(sVal); aMatch = reCase.exec(sVal); } } }