Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

strip "http:" and ".com" / ".net" from website column

Dan5
8 - Asteroid

I have a 'dirty' website column, where some cells have 'https', and some do not. some have 'www', some do not. It is making it difficult to join, due to inconsistencies between sources. how can i for example strip "www.google.com" down to "google", or https://www.ge.com down to 'ge', to make my joins work?

 

Thanks, 

 

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

Try an expression of:

 

 

REGEX_Replace([URL], "^(https?://)?(www.)?(.*?)(.com|.net)?$", "$3")

 

 

Sample attached

 

Dan5
8 - Asteroid

Thanks for the quick reply! works great!

Labels