【发布时间】:2011-08-07 23:06:09
【问题描述】:
我需要从 html 文档中提取隐藏的输入
<input type="hidden" name="email" id="email" value="email%40hotmail.com">
我目前正在使用http://simplehtmldom.sourceforge.net/,但我想知道是否有更快的解决方案,RAM 使用率更低。输入位于文档中间的某处,因此不必加载整个 html 页面。正则表达式会更快吗? 我将不得不处理数百万个文档。为了清楚起见,我只需要提取 email%40hotmail.com
【问题讨论】:
标签: php html-parsing