Address Split Issue
- 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
I am trying to achieve the result shown below. If someone can assist it would be quite helpful. Thanks 🙂
Solved! Go to Solution.
- Labels:
- Developer
- Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @sanjit11
Can you provide data in an excel file. And does the street address always end with street ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @sanjit11,
I have to build a solution for you but currently, it depends on showing the word street to work correctly.
If you will share more rows of the data in excel format I could take another look and amend it.
@atcodedog05 mentioned that it would be very helpful if you will share the data in excel format. It is time-consuming for us to rewrite all the data from the screenshot.
The output:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @atcodedog05 ,
Here is a workflow using REGEX that split the information the way you want !
As @atcodedog05 said, if it doesn't always ends with "street" you'd need to adapt it !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
there u go, ive added a couple more rows!
No the address doesnt always end with street
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Jean-Balteryx,
This is super clean. Thank you for sharing. I want to understand it to improve my regex skills 😀
Could you kindly explain how this works?
(.* (?:Street|Avenue))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Emil_Kos of course !
Inside this pair of parenthesis it takes everything (.*) from the start the value until it meets either the value "Street" or "Avenue".
The | character means OR and the parenthesis with the symbols "?:" means it's an unmarked group so it's not parsed on its own but it rather allows to create a group where a value can be different from one row to another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Jean-Balteryx,
Thank you for that. I believe I understand everything except one small detail.
Why you used two parentheses, I thought that parse mode keeps everything in parentheses; I don't recall seeing one inside of another.
(.* (?:Street|Avenue))
