Alteryx Designer Desktop Discussions

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

Splitting Words and numbers into separate columns.

boroalicja2
7 - Meteor

Hi,

I would like to separate example below into 2 columns - First column only with numbers and other with rest:

 

Input
14 Norbury Street
Fairwood drive 22
Althostrasse 5
Expected Output 1Expected output 2 
14Norbury Street
22Fairwood drive
5Althostrasse

I know it can be done using RegEX but tried few times and I can't get it right .

Thank in advance for any help and clues how to solve it!

7 REPLIES 7
Amy_smart
11 - Bolide

Hi boroalicja,

The simplest solution is to duplicate the fields and use the data cleansing tool. For expected output 1, remove the letters. For expected output 2, remove the numbers.

Thanks,

Amy

messi007
15 - Aurora
15 - Aurora

@boroalicja2,

 

Please see below :

 

 

Capture.PNG

Attached the workflow,

Regards

BS_THE_ANALYST
14 - Magnetar

Parse the letters and numbers out separately I guess! Would be annoying with postcodes involved? @boroalicja2 

1.png

 

 

Towers
11 - Bolide

@boroalicja2 this should work for you.

Screenshot 2023-07-20 150605.png

Amy_smart
11 - Bolide

For the Regex, expected output1 is (\d+) with a parse and expected output2 is (\d) with a replace of nothing.

BS_THE_ANALYST
14 - Magnetar

@boroalicja2 if it does contain postcodes, remove them via the RegEx replace (then continue with the steps highlighted above):

1.png

2.png

 

boroalicja2
7 - Meteor

Thank you all for help!

 

Labels