Showing posts with label How to see if string contains substring. Show all posts
Showing posts with label How to see if string contains substring. Show all posts

Monday, 12 May 2014

How to see if string contains substring


if (strName.toLowerCase().indexOf("myproject") >= 0){
strName= strName.toLowerCase().replace("myproject", "");
}