How to separate (,)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Labels:
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure I understand the question, your output is identical to your input besides some extra spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I want the city name in the end separated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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(.*)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you. Appreciate your help on my learning process. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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(.+)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just for context this is how you would add extra spaces before the city name.
