Trace the index : Match : Regular Expressions Flash / Flex / ActionScript examples


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

 

Trace the index


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var example:RegExp = /abc/;

        var result:Array = example.exec"A string with abc in it" );
        
        traceresult );
        traceresult.index );
        
        result = example.exec"A string with no match" );
        
        traceresult );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» Match