Creating a Regular Expression Object
package{ import flash.display.Sprite; import flash.utils.*; public class Main extends Sprite{ public function Main(){ var reCase:RegExp = new RegExp("abc"); trace(reCase.test("aBc")); reCase.compile("abc", "i"); trace(reCase.test("aBc")); } } }