Alteryx Designer Desktop Discussions

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

Regex Parsing on Names

sridharthemass
7 - Meteor

Hi All,

    Can anyone please suggest on how to flag the below patterns to True from names as per below samples using regex formula tool:

 

Input              Output

A B C Adam    True

A.B.C Adam    True

A Adam           True

A.B.C.D.E.F Adam    True

Adam-Jones    True

Adam Jones    True

 

 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @sridharthemass 

 

What is the pattern and when will the output be true.

sridharthemass
7 - Meteor

Input              Output

A B C Adam    True

A.B.C Adam    True

A Adam           True

A.B.C.D.E.F Adam    True

Adam-Jones    True

Adam Jones    True

 

These are the patterns and will be false if any of the above is not true

danilang
19 - Altair
19 - Altair

Hi @sridharthemass 

 

Name matching is too complex to be solved by a single Regex expression.  No matter how large your sample data set is there will always be exceptions found in real world examples.  You're best best is a 3 pronged approach.

 

1. Use a join to get all the exact matches.

2. Use fuzzy matching to try and match the remainders. 

3. Flag any remaining items  

 

Dan

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @sridharthemass 

 

Does it work for you.

 

atcodedog05_0-1632220720781.png

 

Hope this helps : )

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels