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
Solved! Go to Solution.
Not sure I understand the question, your output is identical to your input besides some extra spaces
I want the city name in the end separated.
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(.*)
Thank you. Appreciate your help on my learning process. :)
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(.+)
Just for context this is how you would add extra spaces before the city name.
User | Count |
---|---|
63 | |
28 | |
23 | |
22 | |
22 |