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.

Parsing digit from a sentence

amitsingh88
8 - Asteroid

Hi,

 

I want to extract only number from the string, I tried like this but not getting whole number like in first example I want to get 12342 but getting only 12.

 

amitsingh88_0-1627512283055.png

 Please suggest the method.

 

Thanks

 

Amit

2 REPLIES 2

Hi @amitsingh88 

 

Other than Regex, you can use Data cleansing to get rid of letters and punctuation. Please see below.

 

christine_assaad_0-1627512888282.png

 

If you need to use Regex, you may try the below as well. Hope this helps. Cheers!

 

christine_assaad_1-1627513111043.png

 

Labels
Top Solution Authors