Matches in segment builder | Community
Skip to main content
cathyw49544988
Level 5
February 26, 2018
Solved

Matches in segment builder

  • February 26, 2018
  • 4 replies
  • 3518 views

I am trying to create a match to a pattern  XX-XX in the segment builder. I tried ??-?? or ..-..

but nothing worked. Anyone knows how to do this kind of wildcard match?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kkristinrust

How about using MATCH \*-*\     ?   This would not explicitly check for 2 characters between the dash but does check for the \ - \ sequence.  Unfortunately I also have struggled with the lack of a single character wildcard.  Would be great if ? worked here.

4 replies

cathyw49544988
Level 5
February 26, 2018

actually I need to match \xx-xx\

Gigazelle
Adobe Employee
Adobe Employee
March 2, 2018

What you're looking for would need regex, which segmentation currently doesn't support. Your best bet is to include multiple segment definitions of the same variable in order to get that data you're looking for.

kkristinrustAccepted solution
March 8, 2018

How about using MATCH \*-*\     ?   This would not explicitly check for 2 characters between the dash but does check for the \ - \ sequence.  Unfortunately I also have struggled with the lack of a single character wildcard.  Would be great if ? worked here.

Pablo_Childe
Community Advisor
Community Advisor
March 9, 2018

Would be better with a more detailed sample of URL/page you are trying to filter but a sort of hack could be:

aaa/bbb/ccc/xx-xx/ddd/ffff

X being multiple versions of characters...

In segment builder

make a container

Starts with (URL or page not sure metric you are trying to filter...)

aaa/bbb/ccc/

and

contains -

and

ends with

/ddd/ffff

may have to play with extra characters depends on your over all matches to the "-" character if in other places...

good luck