In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Utilizing RegEx

kimberlyka
7 - Meteor

I am trying to split

"106108Banking Crisis" into "106108" and "Banking Crisis" into 2 separate columns.

 

I currently have the following set up and it is splitting it into "106108" and "Banking"

Could someone please help me troubleshoot as to how I can solve this.

Thank you!

 

kimberlyka_0-1625163111032.png

 

4 REPLIES 4
Maskell_Rascal
13 - Pulsar

Hi @kimberlyka 

 

Is there more data you are parsing from the field before/after this? Based on your screenshot that appears to be the case, and I would need to know the rest of what you're parsing in order to write the code. 

 

Cheers!

Phil

kimberlyka
7 - Meteor

Hi Phil!

The dataset is just more of the same...

"106106IHC Base"

"106108Prolonged Covid"

Maskell_Rascal
13 - Pulsar

@kimberlyka If that's the case, then you can use the following RegEx code. 

(\d{1,})?([a-z].*)

 

Maskell_Rascal_0-1625164643284.png

 

Note that the question mark isn't really needed if your data is all similar. I put it in to account for a random space that may occur between the digits and letters in your field. 

mceleavey
17 - Castor
17 - Castor

Hi @kimberlyka ,

 

nice and simple, just used the following:

 

(\d{6})([^\d]+)

 

And set the tool to Parse:

 

mceleavey_0-1625164713902.png

 

Hope this helps,

 

M.

 

 



Bulien

Labels
Top Solution Authors