Php 使用正则表达式从多个位置提取数据

Php 使用正则表达式从多个位置提取数据,php,html,regex,Php,Html,Regex,我有一些html代码,我想从中得到两样东西 下面是一段代码(其余的都一样) 2011-02-2714:19:18 2 从中,我想在强标记和requestvote()中的数字之间提取lorem.ipsum 这就是我所拥有的: /_blank"><strong>([^<]+)<\/strong>(.*)requestvote\(([^\']+)\)/s /\u blank”>([^你几乎是对的: preg_match_all('/_blank"><

我有一些html代码,我想从中得到两样东西

下面是一段代码(其余的都一样)

2011-02-27
14:19:18 2

从中,我想在强标记和requestvote()中的数字之间提取lorem.ipsum

这就是我所拥有的:

/_blank"><strong>([^<]+)<\/strong>(.*)requestvote\(([^\']+)\)/s
/\u blank”>([^你几乎是对的:

preg_match_all('/_blank"><strong>(.*?)<\/strong>.*?requestvote\((.*?)\)/s', $response, $match);
preg_match_all('/_blank”>(.*?。*?requestvote\(.*?)/s',$response,$match);
你几乎是对的:

preg_match_all('/_blank"><strong>(.*?)<\/strong>.*?requestvote\((.*?)\)/s', $response, $match);
preg_match_all('/_blank”>(.*?。*?requestvote\(.*?)/s',$response,$match);