Alteryx Designer Desktop Discussions

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

PARSING ONLY LETTERS

dunkindonut7777
8 - Asteroid

Hi I have a data here that I want to parse only the letters/alphabets characters and retain the numbers.

 

7545389 
L2698216L
L2311358L
M0003950M
L2612782L
L3378966L
7850509 
L5975141L
L5975661L

 

Can you help me with this one please? Thank you

6 REPLIES 6
Qiu
20 - Arcturus
20 - Arcturus

@dunkindonut7777 
We cab use "([a-zA-Z]+)" RegEx to perform.
I have added one more row to have multiple occurence of Letters.

0213-dunkindonut7777.png

aatalai
13 - Pulsar

@dunkindonut7777 

Another way not needing regex could be using the data cleanese tool selecting remove numbers punctations etc, i.e only keeping letters.

Deano478
12 - Quasar

@dunkindonut7777 You can use the regex tool in parse mode with the following expression: 

([A-Za-z]+)(\d+)

Then just rename the columns with a select tool after 

binuacs
20 - Arcturus

@dunkindonut7777 another method

image.png

Raj
14 - Magnetar

@dunkindonut7777 One way of doing this is just add data cleansing tool and remove all the numbers you will get the desired output.

JS1989
8 - Asteroid

Hope this helps:)

Labels