We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Separate String Field into Two Columns

jxkcho
5 - Atom

Hello,

 

I would like to separate this Vendor field into two columns: Vendor ID and Vendor Name

jxkcho_0-1622692768355.png

The ID and name is separated by " : " so I'm trying to grab only the digits on the left side of the colon into a new Vendor ID column. And grab only the string on the right side of the colon into a new Vendor Name column. 

 

For this example, the output I'm looking for would be:

Vendor IDVendor Name
90000075EAGLE PRESS INC

 

Thank you in advance for your help!

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@jxkcho 
maybe something like this?

Capture3A.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @jxkcho 

 

Here is how you can do it. You can use below regex in regex tool parse mode.

 

Workflow:

atcodedog05_0-1622700491241.png

 

1. Here i am using regex (\d+) : (.+). Where (\d+) captures vendor ID(number) and (.+) captures vendor name after :

2. And you set the rename for the new columns in the output columns section.

 

Hope this helps 🙂

 

jxkcho
5 - Atom

@atcodedog05 @Qui

 

Thank you both!!

Labels
Top Solution Authors