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

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

binuacs
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