In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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