Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Regex to convert email to regular name

wonka1234
10 - Fireball

Hi,

 

Is there a way to use regex to change email format from:   "JOHNSMITH@GMAIL.COM" to JOHN SMITH?

 

Thanks.

 

 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@wonka1234 ,

 

A better question might be what to do with:

 

SAMISMITH@gmail.com

 

Is it Sam I Smith or Sami Smit?

 

If you have a ROBUST list of last names, you could parse the names based upon the known last names and break it up that way.

 

Cheers,


Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
EN6924
10 - Fireball

EN6924_0-1647983125180.png

 

OllieClarke
15 - Aurora
15 - Aurora

@EN6924 The problem with this approach is you've baked in the assumption that all first names are 4 letters long and all surnames are 5 letters long. Like @MarqueeCrew says without a list of names there is no way to robustly parse the email into first names and surnames...

Labels