Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

REGEX -- separate raw data into 6 columns

TomBock
8 - Asteroid

Hi:

 

I would like to use REGEX to delimit my single source column. As a picture is worth a 1000 words, please see attached JPG illustrating the "After" output.

Based on the sample data (XLSX) file, what regular expression would turn the "Before" data into the "After" output?

 

Thanks,
Tom

 

After.JPG

5 REPLIES 5
PhilipMannering
16 - Nebula
16 - Nebula

You don't need regex to do this. You could do,

PhilipMannering_0-1683107695529.png

 

PhilipMannering
16 - Nebula
16 - Nebula

But this regular expression in the Regex Tool set to parse will also work,

 

(\D+),(\d+/\d+/\d{4})(\d+)\*([\d.]+)\*(\d+).(\d+).

 

ShankerV
17 - Castor

Hi @TomBock 

 

One way of doing this.

 

ShankerV_0-1683108057257.png

(.+),(\d{1,2}/\d{1,2}/\d{1,4})(\d+)\*([0-9.]+)\*(\d+)\((\d+)

 

ShankerV_1-1683108068492.png

 

Many thanks

Shanker V

TomBock
8 - Asteroid

@PhilipMannering -- thank you... both of your solutions work great.   I appreciate your assistance.  

TomBock
8 - Asteroid

@ShankerV -- thank you as well for the solution.   'Very much obliged.

Labels