Im having propbles doing this regex to get everything after a certain character (* in this case) and ends with a newline in PHP.
I have:
texttextext
*Sometext
*othertext
texttextex
i want to be able to get "*Sometext and "*othertext" and add <b></b>
to them.
Already tried with
$a = array(
"/\*(.*?)\n/is"
);
$b = array(
"<b>$1</b>"
);
$texto = preg_replace($a, $b, $texto);
but it does not work. What im doing wrong?