I need to check whether a word starts with a particular substring ignoring the case differences. I have been doing this check using the following regex search pattern but th
In this page you can see that modifiers can be added as second parameter. In your case you're are looking for 'i' (Canse insensitive)
//Syntax var patt=new RegExp(pattern,modifiers); //or more simply: var patt=/pattern/modifiers;