I need help crafting a regular expression to match all uppercase and lowercase letters in my code. Currently, I am only able to match specific characters, but I want to match all characters regardless of case. Here is the excerpt from my code:
$scope.set_color = function(row) {
var inputString = row.Subject;
for (i = 0; i < inputString.length; i++) {
//var findme = "HOT RUSH";
//var str = findme.match(/\b([a-z][A-Z])\b/);
var findmeCap = "HOT RUSH";
var findmeSmall = "hot rush";
if (inputString.indexOf(findmeCap) > -1 || inputString.indexOf(findmeSmall) > -1) {
return {
'background-color': '#FFCCCB'
}
}
}
}
Can anyone provide guidance on how to achieve this?