Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Regex a sentence containing a specific word

DKMI
7 - Meteor

Hi!

 

I am looking to pull out whole sentences from free text containing a word/collection of words

 

Ie:

 

Example string "My name is derek and I am 42. I like to alteryx designer as it is cool. I have ginger hair."

 

I want to pull out sentences containing 'Alteryx designer', so the result would look like:

 

'I like to alteryx designer as it is cool'

 

Any thoughts?

5 REPLIES 5
binuacs
21 - Polaris

@DKMI One way of doing this

binuacs_0-1671710452945.png

 

DavidSkaife
13 - Pulsar

Hi @DKMI 

 

Here is a way of doing it without Regex:

 

DavidSkaife_0-1671710560484.png

 

Use the Text to Columns tool to split by . into rows, then filter out that field where the text contains Alteryx Designer

DKMI
7 - Meteor

Clever! Have an excellent christmas!

DavidSkaife
13 - Pulsar

Thanks, Merry Christmas to you as well!

EN6924
10 - Fireball

Using Text to columns -> Split to rows

 

EN6924_1-1672232299333.png

 

 

Labels