The lastMatch property is the string containing the last match made by the regular expression : LastIndex : Regular Expressions Flash / Flex / ActionScript examples


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

 

The lastMatch property is the string containing the last match made by the regular expression


 
 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var reCase:RegExp = new RegExp("def""gi");
        var sVal = new String("abcdefghi");
        var sMatches:Array = sVal.match(reCase);
        trace(reCase.lastMatch)// Displays: def
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» LastIndex