Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

extract only string

umairah
8 - Asteroid

I know this a common question but I need help to extract only the country name as below.

 

parse data.png

 

Thank you for the help,

 

Regards 

Umairah

5 REPLIES 5
BrandonB
Alteryx
Alteryx

Could you use a data cleansing tool where you check the boxes to remove numbers and punctuation?

 

data cleansing.png

grazitti_sapna
17 - Castor

Hi @umairah , try this.

grazitti_sapna_0-1599542775503.png

 

Thanks.

 

Sapna Gupta
umairah
8 - Asteroid

Hi @BrandonB ,

Hi @grazitti_sapna ,

 

Sorry my question maybe not detailed enough I want to extract only the country name by using regex but I can't seem to take certain name because of the space and special charatcers that included.I will attached the sample data for your reference.

grazitti_sapna
17 - Castor

Hi @umairah ,try this.

grazitti_sapna_0-1599546354913.png

 

 

Thanks.

Sapna Gupta
vizAlter
12 - Quasar

Hi @umairah —Hope attached the solution will be helpful:

.

 

Use this expression in the Custom Filter tool:

 

REGEX_CountMatches([Data], "\s([0-9].)")

 

 

Use below expression in the RegEx tool (for Replace in Output Method):

 

\s([0-9]{1,3}.)+

 

 

vizAlter_0-1599601250755.png

 

If this solves your issue please mark the answer as "Solved" with a Like, if not let me know!

Labels
Top Solution Authors