package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var reCase:RegExp = new RegExp("(\\w)+", "g"); var sVal = new String("abc def ghi"); var aMatches:Array = sVal.match(reCase); trace(aMatches.toString()); } } }