Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

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