如何获取提到的正则表达式inthisarticle在php中使用preg_match?]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))/i",$text,$matches);print_r($matches);?>使用上面的代码我得到以下错误:Warning:preg_match()[function.preg-match]:Delimitermustnotbealphanumericorbackslash... 最佳答案 试试这个:preg_match("#\b(([\w-]+://?|www[.])[^