Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
21 - Polaris
21 - Polaris

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

@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
21 - Polaris

@dunkindonut7777 another method

image.png

Raj
16 - Nebula

@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
Top Solution Authors