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

Parsing LastName

LuckyRaju
7 - Meteor

I am having input like below. Last Name contains Middle Name and Last Name.  Few contains only last Name .

I need to get only Last name .  Middle name and last name can be separated by space or any special character.

 

Input : 

Last Name
S Kumar
N - Rao
A / Reddy
Raj
Selva Ram

 

Output: 

Last Name
Kumar
Rao
Reddy
Raj
Ram
4 REPLIES 4
ShankerV
17 - Castor

Hi @LuckyRaju 

 

One way of doing this.

 

ShankerV_0-1686830083785.png

 

([A-Z]+)$

 

ShankerV_0-1686830113473.png

 

Many thanks

Shanker V

binu_acs
21 - Polaris

@LuckyRaju Another option

binuacs_0-1686839238165.png

 

nagakavyasri
12 - Quasar

Another way:

Screenshot 2023-06-15 143310.png

Luke_C
17 - Castor
17 - Castor

Hi @LuckyRaju 

 

To offer a non-regex solution:

 

Luke_C_0-1686854283940.png

 

 

Labels
Top Solution Authors