Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parsing Query

tandon
8 - Asteroid

I am trying to parse address line in multiple fields

 

for below value 

2316 E 5th Ave,Denver,CO 80206-4205 - I am using "(\d+)\s(\w+\s\w+\s\w+),(\w+),(\w+)\s(\w+)-(\d+)" in regEx however it generated 6 fields which I understand. 

Below is output

tandon_0-1653672421516.png

 

However it didn;t work for value "8785 Cloverleaf Cir,Parker,CO 80134".

 

Is there a way to make it more dynamic ?

 

 

3 REPLIES 3
binuacs
21 - Polaris

@tandon one way of doing this with the help of regex tool

 

binuacs_0-1653673096259.png

 

binuacs
21 - Polaris

@tandon your initial RegEx did not work for the second text because the patters in different in order to work that you need to make some of the fields optional by using the ?

(\d+)\s(\w+\s?\w+\s?\w+?),(\w+),(\w+)\s(\w+)-?(\d+)?

binuacs_1-1653673562303.png

 

Alteryx_AR
12 - Quasar

@tandon - Alteryx has the Parse Address tool. Refer here-

 

https://help.alteryx.com/current/designer/parse-address-tool

Labels
Top Solution Authors