Forum Academy Marketplace Showcase Pricing Features

How to Extract Domain from URL

I’m aware Bubble allows us to extract the top level domain from email addresses, but how would one extract it from a URL?

Try a regex that matches something mentioned here:

Thanks, Scott. I will give this a go!

For the benefit of anyone else looking to achieve the same thing, Scott’s suggestion worked a treat.

Use the regex expression: ^(?:http://|www.|https://)([^/]+)

Thanks again, Scott!


This topic was automatically closed after 70 days. New replies are no longer allowed.