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

Regex Expression/Join based on Condition

Cgandhi0794
5 - Atom

Hi everyone,

 

I have a question and I apologize if this is an easy solution. I have two files and I need to join based on two fields. For example

 

                                       

Field1 (In File 1)                                      Field 5 (In File 2)

123456                                                    L123456-Test Case ABC

 

I need to join based on the common values within both fields. In this case, '123456'.

 

Would I need a regex expression to remove the other characters from Field 5 (In File 2)? If so, not sure how to write that expression.

 

I would really appreciate any help to find a solution. Thank you so much!

 

2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@Cgandhi0794,

 

Please see below:

 

I used a Regex tool in order to get 6 digit from Field 5 (In File 2)

 

messi007_0-1616081499149.png

 

Then I used the join too based in the extract field.

Attached the workflow,

Hope this helps,

 

Regards,

Cgandhi0794
5 - Atom

Thank you! This worked perfectly!

Labels
Top Solution Authors