Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse numbers from String

ArnabSengupta
8 - Asteroid

Hi All,

 

I have a dataset where text contains numbers and there is no delimiter/ uniformity to parse numbers only from the text.

 

Input

Data
01A
02B
02BB
01AAA
11AA
12B

 

 

 

The desired output 

 

DataOutput 1Output 2
01A1A
02B2B
02BB2BB
01AAA1AAA
11AA11AA
12B12B

 

Please advise as how I can parse accordingly.

 

Help is much appreciated 

5 REPLIES 5
kamal03
9 - Comet

If the front 2 digits remain the same then we can solve this by using the regex parse tool using this expression:- (\w{2})(\w*)

Let me know if your requirement is something different.

 

parse number.png

 

TimN
13 - Pulsar

I tried a similar way

binu_acs
21 - Polaris

@ArnabSengupta Another option

image.png

caltang
17 - Castor
17 - Castor

Another solution for you @ArnabSengupta :

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
malteryx1
6 - Meteoroid

Here the below Solution without using Regex.

Labels
Top Solution Authors