<?php
$old = '<a href="#next">flow to the next</a> ';
$new = preg_replace('/(<a href="\#.*?">)(.*?)<\/a>/is', '$2', $old);
echo $new;
solved php preg_replace all the link with #
<?php
$old = '<a href="#next">flow to the next</a> ';
$new = preg_replace('/(<a href="\#.*?">)(.*?)<\/a>/is', '$2', $old);
echo $new;
solved php preg_replace all the link with #