如何提取链接


How to extract a link

我有一个从英语翻译成俄语的链接。我只想输出 http://wallstreetpit.com/103349-qualcomms-qcom-new-technology-to-triple-wifi-speeds/但同时输出要翻译的链接

$url = http://translate.google.com/translate?sl=en&tl=ru&js=y&prev=_t&hl=ro&ie=UTF-8&u=http://wallstreetpit.com/103349-qualcomms-qcom-new-technology-to-triple-wifi-speeds/

只需将 translate.google 网址放在 href 属性中即可<a href=""></a>

并像这样输出 <a href="translate.googleurl">Thewallstreetlink</a>