Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

How to split the required string from the given string

Naga
8 - Asteroid

Hi All,

 

I have a requirement, where in I need to split the text which has some delimiter of " - " and I need one particular split of the given text.

 

example - "Alpha - Beta - Gamma - Delta" on this I need only "Beta" in a separate column. I want to us formula then using the text to column option to avoid performance issues considering the volume of data. Please help

 

Thanks

2 REPLIES 2
danilang
19 - Altair
19 - Altair

Hi @Naga 

 

Try this in a Regex tool

 

REgex.png

 

The Regex string is .*?-(.*?)-.*  which returns every thing between the first and second hyphens

 

Results.png

 

Dan

 

 

Naga
8 - Asteroid
Thanks Dan, it was very quick. This is solved now.
Labels