我有这样的代码:正则表达式从JavaScript
<div class="dealOnContainer">
<script type="text/javascript">
product_countdown('25092', $('counterbox90'));
</script>
</div>
,我想整天从这个脚本(“25092”)用正则表达式赶上秒,但没有任何想法。 也我想:
preg_match('#product_countdown(.*?)/#is', $string, $matches);
list($sekunde) = $matches;
$data['sekunde'] = $sekunde;
但无法正常工作。请帮帮我。 (对不起,我的英语)
很难说出你想要做什么。它看起来像你使用PHP,但你没有用'php'标记这个问题。我根本没有看到任何xpath。 – kojiro