How to extract the host from a URL in JavaScript?

后端 未结 5 2112
我寻月下人不归
我寻月下人不归 2021-02-12 18:20

Capture the domain till the ending characters $, \\?, /, :. I need a regex that captures domian.com in all of these.

domain.com:3000
do         


        
5条回答
提交回复
热议问题