-2
英語ではいくつか、英語ではいくつか、いくつかはlatinsで、今はpreg_replace
の使用方法#
ですべてのリンクが壊れていますか?php preg_replaceすべてのリンク#
<a href="#next">flow to the next</a>
=>flow to the next
? (だけ長いテキストで#
とのリンクが壊れて。
感謝。
このために動作しない。
$new = preg_replace('/<a(?:.*?)(href="#)(?:.*?)>(.*?)<\/a>/is', '$2', $old);
// this will also broken other links...