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