We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Address Split Issue

sanjit11
7 - Meteor

I am trying to achieve the result shown below. If someone can assist it would be quite helpful. Thanks 🙂Screenshot 2021-07-21 130021.jpg

17 REPLIES 17
Jean-Balteryx
16 - Nebula
16 - Nebula

If you don't use the (?:) part then the expression is : ".* Street" or "Avenue".

With the parenthesis it's : ".* Street" or ".* Avenue"

atcodedog05
22 - Nova
22 - Nova

Hi @Emil_Kos 

 


@Jean-Balteryx wrote:

 


"?:" 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.


So this unmarked group is used only as keyword list and it wont be parsed on it owns. 

 

Amazing method @Jean-Balteryx 🙂👏

Emil_Kos
17 - Castor
17 - Castor

Wow, that is super cool! Thank you for explaining @Jean-Balteryx 

Jean-Balteryx
16 - Nebula
16 - Nebula

You're welcome @Emil_Kos !

atcodedog05
22 - Nova
22 - Nova

I remember see this in one of the interactive lessons don't remember which 🤔😅

Emil_Kos
17 - Castor
17 - Castor

Hi @sanjit11,

 

Based on the 4 lines of the data that you have used you need to use the below regex. 

 

(.* (?:Street|Avenue|Road|Ave)) (.*), (.*?) (.*)


Please mark one of the @Jean-Balteryx posts as a solution as he created a working solution for you. 

sanjit11
7 - Meteor

Hi @Jean-Balteryx , @Emil_Kos  and @atcodedog05 ,

 

Thanks alot for all your inputs.

@Jean-Balteryx thanks for the solution, worked fine ! 🙂

 

 

Emil_Kos
17 - Castor
17 - Castor

Awesome @sanjit11 Happy to help and I am happy that I have learned something cool along the way 😀

Labels
Top Solution Authors