ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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

binu_acs
21 - Polaris

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

binuacs_0-1678094626600.png

 

Labels
Top Solution Authors