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

RegEx separate into columns

DanielCarro
8 - Asteroid

Hi Guys,

 

Need some help with RegEx formulation as I am struggling a bit with it.  I need to split the cell into different columns.

 

I have the following:

 

15 May 2024   AAA(01)             GB008     4,000              0.4971000           1,966.80     0.00    1,966.80
16 MAY 24     BBBBB.US@0.1   GB008    70,000          0.014500               1,015.00      0.00       1,015.00
16 December 2024  cc(US_CBS)  AU005           11,000        0.3751000           1,486.00    0.00    1,486.00

 

I need to following output:

 

15 May 2024AAA(01)GB0084,0000.49710001,966.800.001,966.80
16 May 24BBBB.US@0.1GB00870,0000.0145001,015.000.001,015.00
16 December 2024cc(US_CBS)AU00511,0000.37510001,486.000.001,486.00

 

Much appreciated any assistance on this one.

 

Dan

12 REPLIES 12
davidskaife
14 - Magnetar

Hi @DanielCarro 

 

This should work based on your examples:

 

Capture.PNG

 

The Regex i've used is

(.+)\s(\u{2}.+)
DanielCarro
8 - Asteroid

Hi @davidskaife ,

 

Works great, many thanks.  What does \u stand for?

davidskaife
14 - Magnetar

Hi @DanielCarro 

 

\u refers to Uppercase letters only

 

You're welcome!

Labels
Top Solution Authors