Alteryx Designer Desktop Discussions

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

Parsing Apt, Unit, etc. from street

kduong1
6 - Meteoroid

Hi guys!

 

I am trying to parse out apt/unit/spc etc. from street addresses field. 

Example: 123 Main St Apt 2

 

Ideal Result:

Street_AddressApt/Unit
123 Main StApt 2

 

I know to use RegEx but not sure what expression to use. Any help is appreciated!

 

Thank you!

2 REPLIES 2
mceleavey
17 - Castor
17 - Castor

Hi @kduong1 ,

 

the problem you will have here is you have only provided one line of data, and so we don't know how consistent your data is.

I have attached a workflow which parses out the apartment then removes it from the original value, creating a separate column, but this will only work if all records are in this format.

 

Hopefully this will get you started though.

 

M.



Bulien

randreag
11 - Bolide

hi @kduong1 

 

I attached a workflow to show you how could be.

 

Depends on the second part you can change Apt for something more general [a-z] and the length {2,} 

 

I hope it helps

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels