Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

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
Top Solution Authors