Monday, 12 May 2014

How to see if string contains substring


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