$str = <a href="keep.php?casuser=400000018623110" onclick="ajaxLinkSend('globalContainer', 'keep.php?casuser=400000018623110'); return false;" style="color:#ffca3e">
我的工作怀孕匹配所有:
preg_match_all('/\'keep.php\?casuser=(.*) style=\"color:#ffca3e/iU', $result, $matches2);
$matches2[1][0] = 400000018623110'); return false;"
但我只想要数字
没有结果:
preg_match_all('/\'keep.php\?casuser=(.*)\'\); return false;" style=\"color:#ffca3e/iU', $result, $matches2);
任何人都可以帮助我吗?并解释为什么它不起作用?谢谢