Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AAM Trait Regex

MA1985v1
Level 2
Level 2

As per my understanding, we need to have the trait key name and value in place in AAM even though if we use regex to consider “ALL” (i.e.: .*) . Highlighted below.

 

Assume that, we have sent only 3 different dealcode trait key value to AAM but wanted to exclude those 3 key value but need to include rest of the new upcoming key value.

 

Scenario:

We would like to consider all users falls under dealcode by using regex .* and at the same time exclude the users with the specific value(“yaa|abc|tst”)

MA1985v1_0-1621454853546.png

 

1 Accepted Solution
Varun_Kalra
Correct answer by
Community Advisor
Community Advisor

Hi there,

 

That should work and will exclude those 3 deal codes from the trait. Your regular expression will look for the substring and may exclude other dealcodes that use the same substring.

To be more precise and specific use string start and end match operators in your regular expression.

 

^yaa$|^abc$|^tst$

 

Also, once you have built the trait, you can use the trait validation tool while editing the trait and check if someone with those values will exhibit the trait or not:

 

Varun_Kalra_0-1621480788066.pngVarun_Kalra_1-1621480854134.png


Thanks,

Varun Kalra

View solution in original post

2 Replies
Varun_Kalra
Correct answer by
Community Advisor
Community Advisor

Hi there,

 

That should work and will exclude those 3 deal codes from the trait. Your regular expression will look for the substring and may exclude other dealcodes that use the same substring.

To be more precise and specific use string start and end match operators in your regular expression.

 

^yaa$|^abc$|^tst$

 

Also, once you have built the trait, you can use the trait validation tool while editing the trait and check if someone with those values will exhibit the trait or not:

 

Varun_Kalra_0-1621480788066.pngVarun_Kalra_1-1621480854134.png


Thanks,

Varun Kalra

View solution in original post