Alteryx Designer Desktop Discussions

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

EXTRACTING THE DIGITS IN A COLUMN

dunkindonut7777
8 - Asteroid

Hi How can I separate these first 9 digits in a column? I dont know exactly the formula using the regex tool.

 

FieldExpected Output
105730408  CBCLH-/PUB() CA-IntB-JPY-000910021960105730408
105730407  PRC-/PUB() CA-IntB-USD-000910021971105730407

 

Can you help me with this one please?

2 REPLIES 2
ShankerV
17 - Castor

Hi @dunkindonut7777 

 

Please use the below formula in Regex tool

 

(\d+)

 

Output method = Parse

 

Many thanks

Shanker V

caltang
17 - Castor
17 - Castor

There are two ways:

 

image.png

 

If you just want the first 9, then you can use either

LEFT([Field],9)

OR REGEX

(\d{9}).*
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels