【发布时间】:2011-10-26 19:03:18
【问题描述】:
我有文字:
Hello please click this:
https://active.gameta.com/VE?service=proservice&c=CMzc-53lyIbqVBCXzc62-YP64BM&hl=pl.
And follow the instructions if you have problems click
http://problems.com/contact.php
我需要这个https://active.gameta.com/VE?service=proservice&c=CMzc-53lyIbqVBCXzc62-YP64BM&hl=pl 怎么样?在 php 中的 regxp 中
【问题讨论】:
-
if (preg_match('%active\.gameta\.com/VE\?service=proservice&c=CMzc-53lyIbqVBCXzc62-YP64BM&hl=pl%', $subject, $regs)) { $结果 = $regs[0]; }
-
@FailedDev c= 是变化
-
我不太确定你在问什么。您想在实际的 HTML 超链接中转换文本链接吗?
-
我有纯文本,我只需要 active.gameta.com/… 但 c= 和 &hl= 可以更改