☆─────────────────────────────────────☆
susannazhu (suannazhu) 于 (Mon Aug 29 20:43:29 2005) 提到:
求问各位大虾:
我想从url 中取出domain name
例如:从"http://www.yahoo.com/"取出"yahoo.com"
我用ereg() function
可是怎么也想不出比较好的regular expression.
多谢
☆─────────────────────────────────────☆
uuiiuu (无) 于 (Mon Aug 29 20:56:30 2005) 提到:
this is more complex than you expected.
For example, if a website is srv1.finance.yahoo.com
what's the domain name you want? finance.yahoo.com or yahoo.com?