Alteryx Designer Desktop Discussions

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

How to separate (,)

Kinetic_analytics
11 - Bolide

Hello:

How can I separate the name

This input : JPMorgan Chase Bank, N.A., Mumbai

 

I want output separated with Comma (,) for instance, 

my desired output: 

 

JPMorgan Chase Bank, N.A.,                     Mumbai

 

 

Appreciate your help 

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hi @Kinetic_analytics 

Not sure I understand the question, your output is identical to your input besides some extra spaces 

Kinetic_analytics
11 - Bolide

I want the city name in the end separated.

Luke_C
17 - Castor
17 - Castor

Hi @Kinetic_analytics 


Like @IraWatt said, you should provide more requirements. From what I can gather, you want to split out the value after the last comma into its own field. Something like the below should work. It would be good for you to provide more sample data when asking text parsing questions in order to get the best answer.

 

(.*),\s(.*)

 

Luke_C_0-1650396409890.png

 

 

Kinetic_analytics
11 - Bolide

Thank you. Appreciate your help on my learning process. :) 

SPetrie
13 - Pulsar

If you are wanting to keep the comma, you can parse it with this regex

(.+)\s(.+)

otherwise this one would do it and remove the last comma

(.+),\s(.+)

 

SPetrie_0-1650396602410.png

SPetrie_1-1650396639520.png

 

 

IraWatt
17 - Castor
17 - Castor

IraWatt_0-1650396773187.png

Just for context this is how you would add extra spaces before the city name.

Labels
Top Solution Authors