how to ignore case with regex in load rules?

jon_narong
Rookie Contributor
jon_narong
I'm trying to add a load rule that looks to match a variety of dom.pathname values: /path1 /path2 /path3 I'd also like to ignore case on this rule as a precautionary measure. In total there are about 25 URLs I'd like to check against. I could add a lengthly list of OR statements using "contains (ignore case)" but I thought it'd be nice to simplify some of these line items using regex. Except I can't seem to find out how to add the ignore case modifier flag (i) within this regex field. In other words I want to create something that would match: /path1 /PATH2 /path2 /pAth3
2 REPLIES 2

how to ignore case with regex in load rules?

Tealium Employee
Hi Jon, In the input field just add your regex statement as if you you were writing it normally. So for example: {code:js} /PATH2/i {code}
Highlighted

how to ignore case with regex in load rules?

nicolas_kaufman
Bronze Contributor
Bronze Contributor nicolas_kaufman

Hi @simon_browning,

 

I tried this solution in a mapping table regex, but it seems that it doesn't work there. I swithed the check mode to "RegExp" and entered /^example$/i but it did not fire until I removed the global i option.

 

Could it be that it only works with load rules?

 

Best,
Nicolas