Part of String Case Insensitive in JavaScript Regex (?i) option not working
问题 Oki before you all admins start marking this question duplicate referencing this SO question How to make regex case-insensitive? I want to clarify that the other referenced question doesn't answer my problem. I am using Nodejs to build application in which I need to process certain strings I have used the JS "RegExp" object for this purpose. I want only a part of my string in the regex to be case insensitive here's my code var key = '(?i)c(?-i)ustomParam'; var find = '\{(\\b' + key +'\\b:?.*?