Hello I have a little problem
This is my current code
<?php
$str = trim($_POST['email']);
$str = nl2br($str); // insert <br /> before
$str = preg_replace($whitelistPregReplace, '<span style="color:blue">$1$2$3</span>', $str);
echo $str;
?>
The problem is it hightlight the whole line if "1bird.one" occurs. I want hightlight whole line only if "bird.one" occurs, not fdsfsdfsdbird.onefdsfsd ocurs
Thanks for your help