Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
Top Solution Authors