Use the exec() method. : RegExp : Regular Expressions Flash / Flex / ActionScript examples


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

 

Use the exec() method.


 


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

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» RegExp