We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Removing Prefix from Names

mmustkee
10 - Fireball

H Team,

 

I have a long list in which I need to remove prefix from names. Some examples ae below. Kindly refer table and help me to achieve target.

NameTarget
MR amaramar
Mramaramar
MRS TmirTmir
MRSTmirTmir
DR simonsimon
DRsimonsimon
PROF HasanHasan
PROFHasanHasan
MISS TomarTomar
MISSTomarTomar
MRS TomaToma
MRSTomaToma
MS DrawingDrawing
MSDrawingDrawing
DrawerDrawer
SawerSawer
Haseen MSHaseen
Taken love mrTaken love
Taken love mrsTaken love
Taken love msTaken love
Taken love mrsTaken love
Taken love drTaken love
Taken love profTaken love
ShakenShaken
Mohammad MustkeemMohammad Mustkeem
8 REPLIES 8
DenisZ
11 - Bolide

I could suggest using the find and replace tool here

 

DenisZ_0-1667542340729.png

 

grazitti_sapna
17 - Castor

@mmustkee , Please dinf one way to resolve your problem using formula and regex_replace function:

 

grazitti_sapna_0-1667542660166.png

 

Sapna Gupta
mmustkee
10 - Fireball

Thanks a lot for your quick response.

mmustkee
10 - Fireball

HI Thanks for your reply but find and replace will not work.

Suppose if we have these prefix in the middle of the name like Thoms, Thmrsasa, mdram, then it will remove middle prefix as well.

Do you have another solution for the same.

mmustkee
10 - Fireball

Hi,

 

Sorry to bother you but when I applied this on my file it deleted these prefix from middle of the name as well. I just want these prefix to be removed from starting of the name and from end of the name with or without space.

 

Kindly help.. 

mmustkee
10 - Fireball

Kindly refer two names 

Thomsds
Thmrsasa
mmustkee
10 - Fireball

Hi Sapna,

Hi,

 

Sorry to bother you but when I applied this on my file it deleted these prefix from middle of the name as well. I just want these prefix to be removed from starting of the name and from end of the name with or without space. Please refer name below:

Thomsds
Thmrsasa

 

Kindly help.. 

DenisZ
11 - Bolide

@mmustkee 

I believe if you enter a blank space before and/or after Mr etc. in the formula tool, then it could solve the problem. 

Labels
Top Solution Authors