Searching : Search : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Search »

 

Searching


 

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

        var reCase:RegExp = new RegExp("\s(\w)+\s""g");
        var sValue:String = new String("abc def ghi");
        trace(sValue.search(reCase));                // 3

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Search