Using regex in Split metric properties

Comments

3 comments

  • Bilal Al-Shahwany

    Hi, The Regex matcher takes only one string variable, the List matcher will allow checking multiple strings, but no regex support here.

    If the number of items is fixed, meaning you always will use 5 string items, you can create a targeting rule with 5 matchers, and choose regex, substring, etc. for each matcher.

    Hope that helps.

    Thanks

    0
    Comment actions Permalink
  • lucky

    Hi Bilal, appreciate your quick response. I think my example was a bit unclear.

    For example my metric targeting rule: Where property_A matches item1|item2|item-joined|item3|

    In this case the regex tries to capture the items in property_A will be "item1|item2|item-joined|item3|" with " removed.

    I would expect the following property values to be picked up:

    Event 1 where property_A: item1

    Event 2 where property_A: item2

    Event 3 where property_A: item3

    Event 4 where property_A: item-joined

    0
    Comment actions Permalink
  • Bilal Al-Shahwany

    Hi, If you use the List matcher, your example will work, this would be a string equivalence operator.

    Thanks

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.