Calling all Racers for the Alteryx Grand Prix! It's time to rev your engines and race to the stage at Inspire! Sign up here.

Alteryx Designer Discussions

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


8 - Asteroid

Hello all


I am starting with RegEx and have difficulty with RegEX parsing


I have UK address and  need to parse out road number  and postcode (US zip) for is AA## #AA


I have been able to parse out the number using (\d+)

I have been able to postcode out the number using ([[:alpha:]]{2}\d{2}\s\d[[:alpha:]]{2})

done these individually but can't do it on the same REGex tool, is there a or operator


what am i missing?


also, how do I get the road name to be parsed?

How can i use the Regex match to identify if data doesnt have a postcode?




MAny thanks






11 - Bolide

Hi @DennyChan 


You are almost there. You just need to provide multiple groups in regex expression to parse out multiple fields. Ex. One group for road number, one group for zip code and vice versa.

Number of output fields = Number of capturing groups (Non capturing groups will be excluded)

You can refer below configuration for your reference. And regarding road name, I did not find any road name in data.





15 - Aurora
15 - Aurora

@Amol_Telore Though not point in capturing a group and then ignoring it. You might as well replace (?:.*) with .*

18 - Pollux

@DennyChan another way doing this



8 - Asteroid

Thanks @Amol_Telore


The address I am referring to is the words "address, another address and long long address" everything between the house number and postcode, need to parse as street name



many thanks




11 - Bolide

@DennyChan You can use below regex to parse all three information in parse mode. 


Regex Expression :-



@PhilipMannering I tried your suggestion. Thanks for showing me this approach.! 

13 - Pulsar

Hi @DennyChan ,


It's possible to extract both from one RegEx tool.


The main problem in yours is that the number at start of string is not recognized.


I re-edited your regex a bit to make it work.


To extract them, you put them in parentheses as you did before.




Cheers ! 




20 - Arcturus
20 - Arcturus

You might find this site useful: 


better to find success in other peoples efforts





Alteryx ACE & Top Community Contributor

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