Convert string to lowercase then compare : Compare : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Compare »

 

Convert string to lowercase then compare


 

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

        var example:String = "Cool. This is a cool as both cool (lowercase) and Cool.";
        
        var search:String = "cool";
        
        traceexample.toLowerCase(  ).indexOfsearch ) );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Compare