RegExp("(A|BC)* *(A);*(B)* *(C)* *(A|B|C)*", "i") : RegExp : Regular Expressions Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Regular Expressions » RegExp »

 

RegExp("(A|BC)* *(A);*(B)* *(C)* *(A|B|C)*", "i")


 

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);

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» RegExp