I know that I can use case insensitive approach as follows:
var name = "test A/c";
{name: new RegExp('^'+name+'$', "i")}
Now I want to escape backslash in above expression. I know how to escape backslash:
/\//ig;
But I dont know how to use these two patterns in combination with each other.