Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Contains in Filter

vlad_kutateladze
8 - Asteroid

I need to filter text data by keyword.

For example, I need  "Demo", but in result I have also "Demographic" and all other word including "Demo" as part of the word, but i need only entire word "Demo"  

4 REPLIES 4
Thableaus
17 - Castor
17 - Castor

Hi @vlad_kutateladze 

 

Use REGEX.

 

REGEX_Match ([Field], ".*\bDemo\b.*")

 

Cheers,

Thableaus
17 - Castor
17 - Castor

By the way @vlad_kutateladze 

 

This REGEX means:

 

.* - any character 0 or more times

\b - word boundary (that means, everything that is not a word)

Demo - your keyword

\b - another word boundary (which means the word "Demo" will be isolated, not preceded or followed by any other word character)

.* any character 0 or more times

 

Word characters are any alphanumeric characters.

 

Cheers,

vlad_kutateladze
8 - Asteroid

@

alkafalhas
7 - Meteor

Hi @Thableaus 

 

What if I have a similar case, but this time i wanted to filter everything that contains "DEMO" including demographic as mentioned.

 

Stay safe, thank you in advance

Labels