Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start 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