Solved

Segment condition 'Contains +'

  • 13 April 2023
  • 4 replies
  • 67 views

Hi,

 

I’m creating a segment and want to only show emails where they contain a + sign.

 

However, this always shows as 0, even though there are many emails which include + sign.

 

How can I get round this / create a filter to show these?

 

Thanks,


Rupert

icon

Best answer by moretonr 13 April 2023, 13:08

View original

4 replies

Just found the answer myself!

Add a \ before the special character

Article here: https://customer.io/docs/data-driven-segments/#special-characters

Userlevel 3

Hi Rupert!

 

I noticed an issue with your condition. The “+” symbol is a special operator used for simple, regex-like matching, and not as part of the condition. This is causing pattern matching to occur instead of considering “+” as a character in the condition. 

 

To resolve this, you can add a backslash ( \ ) to escape the pattern matching and include the “+” symbol as a character in the condition. This way, it will be treated as a literal character and not a special operator.

 

You can find more information about this in the following link: https://customer.io/docs/segments/#troubleshooting-segments

 

I hope this information is helpful to you!

Userlevel 3

I’m glad you were able to solve it, Rupert! 👏

Thanks Mau!

Reply