Skip to main content
Solved

Segment condition 'Contains +'


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

Best answer by moretonr

Just found the answer myself!

Add a \ before the special character

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

View original
Did this topic help you find an answer to your question?

4 replies

  • Author
  • Novice
  • 3 replies
  • Answer
  • April 13, 2023

Just found the answer myself!

Add a \ before the special character

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


Mau
  • 60 replies
  • April 13, 2023

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!


Mau
  • 60 replies
  • April 13, 2023

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


  • Author
  • Novice
  • 3 replies
  • April 13, 2023

Thanks Mau!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings