I have the following regex -
bannerHtml.match(/href\s*=\s*[\"']{clickurl}(.*)[\"']/);
which corresponds to the following -
href = "{clickurl}
Now I want the href match to only be case insensitive, but not the whole string. I checked the addition of the template i modifier, but it seems to be used for the whole line always -
bannerHtml.match(/href\s*=\s*[\"']{clickurl}(.*)[\"']/i);
Additional Information I want all of the following to match -
href = "{clickurl}
href = "{clickurl}
href = "{clickurl}
But part of clickurl capital clickurl not match -
href = "{clickurl}
source share