Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Combining multiple columns (Post Reg-EX) into respective columns?

shong
7 - Meteor

Hello,

 

In my first column, I have varied ways of how an "ID" was entered (with spaces, without space, etc.). I used a RegEX to parse it out but it came out to be 4 different columns. I would like to merge The RegEXOut3 and RegEXOut4  into RegEXOut1 and RegEXOut2, respectively.

 

I tried using the transpose tool, but it was not returning the intended results.

 

Thanks for any insights!

 

Alteryx - Combine Columns.JPG

 

Alteryx - Combine Columns 2.JPG

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus
Try:
(\w\w\)s*-\s*(\d+)

Use it in a regex tool to parse your input.

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
shong
7 - Meteor

Thanks Mark!

 

I slightly modified the formula you provided: (\w\w)*\s*-*\s*(\d+) and it worked!

Labels