Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取网址的域名“名称”?例如, http://www.example.com http://example.com
始终获得“示例”部分。
我应该使用正则表达式吗?我该怎么做?