Alteryx Designer Desktop Discussions

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

Extract Data Until a Specific String

insomned
8 - Asteroid

Hello, I have a column of data in which I need to extract everything until either "." or ",". For instance,

 

Name 

 

Tony Hotels, Resort

Mada Hotels - Apartments

 

For this I would need 

 

Name Extract

 

Tony Hotels,

Mada Hotels 

 

as the end goal.

 

Could anyone help?

 

Thanks a million!

5 REPLIES 5
ShankerV
17 - Castor

Hi @insomned 

 

One way of doing this.

 

ShankerV_0-1678092899274.png

 

insomned
8 - Asteroid

Thanks!

insomned
8 - Asteroid

Apologies, what if I needed the data until the very first punctuation mark? Mainly "," or "-". Thanks!

ShankerV
17 - Castor

Hi @insomned 

 

Please find the expected, 

 

ShankerV_0-1678093428147.png

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@insomned One way of doing this with the Regex Tokenize method

binuacs_0-1678094626600.png

 

Labels