Alteryx Designer Desktop Discussions

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

Separating a long string in one colmun

GarMIngle
8 - Asteroid

This is what I have in one column:

 

Office SuppliesFurnitureOffice SuppliesOffice Supplies

Office SuppliesTechnology

 

This what I would like:

 

Office Supplies,Furniture,Office Supplies,Office Supplies

Office Supplies,Technology

 

I want to parse with comas so I can write a function using a portion of the long string not the entire string

6 REPLIES 6
AkimasaKajitani
17 - Castor
17 - Castor

Hi @GarMIngle 

 

Is this helpful?

 

AkimasaKajitani_0-1609216390359.png

RegEx Setting :

AkimasaKajitani_1-1609216408064.png

 

RegEx Regular Expression

[A-Z][a-z]+\s[A-Z][a-z]+|[A-Z][a-z]+

Do not check "Case Insensitive"

 

RegEx Output :

AkimasaKajitani_4-1609216466290.png

 

Summarize Setting : 

 

AkimasaKajitani_2-1609216428052.png

 

Final Output :

AkimasaKajitani_3-1609216448926.png

 

GarMIngle
8 - Asteroid

Hey thanks I will try, much appreciated

GarMIngle
8 - Asteroid

Any thoughts, I ended up with Office Supplies in two rows not one, everything else work perfectly. Do not know what to do to fix. Limited skills

AkimasaKajitani
17 - Castor
17 - Castor

Hi @GarMIngle 

 

Please find the difference.

 

My Expression:

[A-Z][a-z]+\s[A-Z][a-z]+|[A-Z][a-z]+

 

Your Expression:

[A-Z][a-z]+\[A-Z][a-z]+|[A-Z][a-z]+ 

 

 

PraphulSamavedam
8 - Asteroid

In the regex you were missing "s" for space.

PraphulSamavedam_0-1609223949667.png

This shall fix it. 

GarMIngle
8 - Asteroid

Thanks again

 

GarMingle

Labels