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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Matches in segment builder

cathyw49544988
Level 6
Level 6

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.

1 Accepted Solution
kristinr8966887
Correct answer by
Level 2
Level 2

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.

View solution in original post

4 Replies
Gigazelle
Employee
Employee

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.

kristinr8966887
Correct answer by
Level 2
Level 2

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.

View solution in original post

pabloc82923542
Level 9
Level 9

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