Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Regex: Extract only Alphabetical Characters

Cfdiaz2103
8 - Asteroid

Hey Guys!

 

What would it be the correct expression for a Regex Tool, in order to extract [a-z] characters for this Dataset?

Input

Purchases 11%

Purchases

Purchases 12%

Services 19%

Services

Services 5%

 

Output

Purchases

Purchases

Purchases

Services

Services

Services

 

I'd appreciate any response from you

 

Thanks.

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @Cfdiaz2103 

 

Use regex like below. \u stands for upper character and doing a case insensitive find.

 

Workflow:

atcodedog05_0-1635358293222.png

 

Hope this helps : )

 

drew9
9 - Comet

Hi @Cfdiaz2103,

 

\w+ will match one or more word characters from a field and [[:alpha:]]+ will match one or more letters from a field. both will work in this instance.

 

You can use the tokenize function of the regex tool to parse out your desired output!

Cfdiaz2103
8 - Asteroid

Hey @atcodedog05 !

 

It works perfectly. However, if I had a value like this: Withholding Tax 11%, What expression should I use to obtain the value: Withholding Tax?

 

I'd appreciate your support.

atcodedog05
22 - Nova
22 - Nova

Hi @Cfdiaz2103 

 

Use regex like below

 

Workflow:

atcodedog05_0-1635487515567.png

 

Hope this helps : )

 

Labels