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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Parse Names with Different Formats

bridgethutter
7 - Meteor

Hello,

 

I have a number of employee names I am trying to parse into a standard format. I know no matter what, I need to parse at the first comma. And I am just trying to get rid of the middle initial at the end but not all names have it and some first names have a double name with either a space or - in between. I want it to end up as last name and first name, however I have so many different formats, I am having a hard time finding the right regex formula. 

 

Current:

Employee Name
HUNTER,BRIDGETT T

HUNTER WONDERLIN,BRIDGETT T

HUNTER-WONDERLIN,BRIDGETT

HUNTER,BRIDGETT LOUIS T

HUNTER, BRIDGETT-LOUIS T

HUNTER, BRIDGETT-LOUIS

 

Desired Outcome

 

HUNTER                                        BRIDGETT

HUNTER WONDERLIN                 BRIDGETT

HUNTER-WONDERLIN                 BRIDGETT

HUNTER                                        BRIDGETT LOUIS

HUNTER                                        BRIDGETT-LOUIS

HUNTER                                        BRIDGETT-LOUIS

 

Thanks!

Bridget

2 REPLIES 2
Emmanuel_G
13 - Pulsar

@bridgethutter 

 

In attachement an easy regex expression to do that.

 

Emmanuel_G_0-1665583758738.png

 

binu_acs
21 - Polaris

@bridgethutter One way of doing this

binuacs_0-1665600191289.png

 

Labels
Top Solution Authors