我有这样的正则表达式:PHP RegExpr错误未知的修饰词“(”
([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)
其从论坛中提取主题链接
现在,当我使用它在我的剧本
$url = "([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)";
preg_match_all spits:“未知修饰符”(''
这也是对preg_match的调用
preg_match_all($url, $str, $matches,PREG_OFFSET_CAPTURE,3);
谁能帮我解决这个明显的愚蠢问题
这是一个奇怪的正则表达式。它会匹配“nice.rum.is.nice.1234”,就像匹配该网址一样容易。你确定你想要使用角色类吗? – 2010-05-22 15:07:08