I am trying to replace the first string in the code
$confirmation_message = apply_filters("pmpro_confirmation_message", $confirmation_message, false);
$confirmation_message = preg_replace('mysite.com', 'mysite.com?true', $str, 1);
echo $confirmation_message;
But it is giving me a weird error
Delimiter must not be alphanumeric or backslash line
Here's the original output of $confirmation_message
<p><font><font class="">Visit your new site here: </font></font><a href="mysite.com/"><font><font class="">mysite.com</font></font></a></p>
<p><font><font class="">Manage your new site here: </font></font><a href="mysite.com/wp-admin/"><font><font class="">mysite.com/admin</font></font></a></p>