このようなトピックはたくさんありますが、私は多くのエラーを試してみたので、これが元のテキストです
onclick="NewWindow('http://google.com','name','800','600','yes');return false">
これは私のコードです
    $re1='(onclick)';
  $re2='(=)';
  $re3='(.)';
  $re4='(NewWindow)';
  $re5='(\\()';
  $re6='(.)';
  $re7='((?:http|https)(?::\\/{2}[\\w]+)(?:[\\/|\\.]?)(?:[^\\s"]*))';
  $c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7."/is", $txt, $matches);
  print_r($matches);
正規表現とphpを使用してURLを取得するのを手伝ってくれる人はいますか??
このコードの何が問題になっていますか?
よろしく