Convert string to lower case then call the lastIndexOf method : Case : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Case »

 

Convert string to lower case then call the lastIndexOf method


 

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(  ).lastIndexOfsearch ) );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Case