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 Match Help

caltang
17 - Castor
17 - Castor

I have the following strings in a large dataset.

 

I am looking for strings with this pattern:

 

1. SURNAME, Given Name

2. MADEUPSURNAME, Dagivenn Ame

3. MOREEXAMPLE, Hope Ithelps

 

I've tried; ^(\d+)\. ([A-Za-z]+), ([A-Za-z]+)$ but it only returns 1 out of many... not sure what I'm missing here.

 

Thanks!

-Cal

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
5 REPLIES 5
Raj
16 - Nebula

does this help 

Raj_0-1683866871877.png

 

caltang
17 - Castor
17 - Castor

Hi @Raj 

 

Thanks! But the numbers 1. 2. 3. are part of the string. 

 

Your formula works if the numbers are not included. Could you have a look and revise please?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Raj
16 - Nebula

Raj_0-1683867303126.png

 

^(\d+).([A-Za-z\s'-]+), ([A-Za-z\s'-]+)$

 

caltang
17 - Castor
17 - Castor

Thank you my friend @Raj ! I see what I did wrong now. 

 

I learned something new from you today, really appreciate it.

 

Best,

Cal

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Raj
16 - Nebula

Happy to help

Cheers!!

Labels
Top Solution Authors