ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Obtain district from a postcode e.g. SL4, LL58

ramanm43
6 - Meteoroid

Hi,

 

Not sure what to use in the RegEx to obtain only the first part of a postcode? Currently, I have (\u+) but this does not return digits.

 

Input = LL58 1AP

Required Output = LL58

 

thanks for any help.

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

@ramanm43 ,

 

 this should solve for you without regex:

 

Getword([input],0)

 

 cheers,

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors