Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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