Reply
Highlighted
Visitor
Posts: 2
Registered: ‎12-18-2016

loadrule with regularExpression

Hi Team,

Is there a way in tealium to set the regex loadrule condition ?

For example : I have a data variable called utag_data['dom.query_string'] = "something@test.com&falconfallback=true", which may contains some email patterns. My loadrule should be able to check if the value for the variable- utag_data['dom.query_string'] doesNotContains any email pattern then only need to configure a tag.

Can somebody suggest me how we can do this ?

Reply
0 Kudos
Visitor
Posts: 22
Registered: ‎06-01-2016

Re: loadrule with regularExpression

@v-ynaik you have to fiddle a bit around with this, but a possible regex could be:

(\?)((?!@).)*$

It means all patterns/urls that have no @ after the ? Is that specific enough? Otherwise you have to play with it in an online regex tool. And look for "negative lookaheads" in Google, cause that's what you're looking for.

 

Freelance Web Analist
Tealium Employee
Posts: 382
Registered: ‎09-01-2015

Re: loadrule with regularExpression

Hi @v-ynaik

I would post this into the new Product Ideas forum.
This is a perfect candidate.

Regards,

Adrian

Ask me anything Tealium related or Javascript, or NodeJS. But not cooking, can't do that.
Please remember to mark solutions as accepted for future searchers.