package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var reCase:RegExp = new RegExp("(A|BC)* *(A);*(B)* *(C)* *(A|B|C)*", "i");
var aMatch:Array = reCase.exec("action");
trace(aMatch);
aMatch = reCase.exec("A B C");
trace(aMatch);
aMatch = reCase.exec("B C");
trace(aMatch);
aMatch = reCase.exec("A B C");
trace(aMatch);
aMatch = reCase.exec("A C B");
trace(aMatch);
}
}
}
|