phpでURLをハイパーリンクの関数に変換します。 496 ワード function showtext($text){ $search = array('|(http://[^ ]+)|', '|(https://[^ ]+)|', '|(www.[^ ]+)|'); $replace = array('$1', '$1', '$1'); $text = preg_replace($search, $replace, $text); return $text; } 半時間で完成します。国家統計局の2013年全国行政機構を捕まえて、mysqlを挿入します。 Java基礎二