String Methods and Regular Expressions : RegExp : Regular Expressions Flash / Flex / ActionScript examples


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

 

String Methods and Regular Expressions


 

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

        var reCase:RegExp = new RegExp("(\w)+""g");
        var sVal = new String("abc def ghi");
        var aMatches:Array = sVal.match(reCase);
        trace(aMatches.toString());

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» RegExp