The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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.
解決済み

Splitting Words and numbers into separate columns.

boroalicja2
アステロイド

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件の返信7
Amy_smart
ボリード

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
15 - Aurora
15 - Aurora

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

1.png

 

 

All the best,
BS

LinkedIN

Bulien
Towers
ボリード

@boroalicja2 this should work for you.

Screenshot 2023-07-20 150605.png

Amy_smart
ボリード

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

BS_THE_ANALYST
15 - Aurora
15 - Aurora

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

1.png

2.png

 

All the best,
BS

LinkedIN

Bulien
boroalicja2
アステロイド

Thank you all for help!

 

ラベル
トップのソリューション投稿者