Alteryx Designer Desktop Discussions

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

Parse Alphanumeric vs. Text Into Two Columns

Reade39
5 - Atom

Hi all - I have address data that includes both the city name and zip code. The zip code contains five to seven alphanumeric characters. The city names may contain multiple words. I would like to parse the column into two columns for city and zip code. Thanks in advance!

 

The data looks like this:

 

ADDRESS
LONDON EC1Y 2AB
EAST MORTON
NW7 4SD LONDON
HAMPSHIRE
ROMFORD RM3 8FU
SEVEN OAKS TN13 1JG
TN13 1JG

 

I would like the output to look like this:

 

ADDRESSCITYZIP
LONDON EC1Y 2ABLONDONEC1Y 2AB
EAST MORTONEAST MORTON 
NW7 4SD LONDONLONDONNW7 4SD
HAMPSHIREHAMPSHIRE 
ROMFORD RM3 8FUROMFORDRM3 8FU
SEVEN OAKS TN13 1JGSEVEN OAKSTN13 1JG
TN13 1JG TN13 1JG
1 REPLY 1
Felipe_Ribeir0
16 - Nebula

Hi @Reade39 

 

One way of doing thisi

Felipe_Ribeir0_0-1674093268815.png

 

Labels