This question already has an answer here:
I don't know how to convert from ereg to preg; could someone help me with this line?
ereg
preg
if (ereg("[/[/]",$keyword)) { ... }
</div>
This should work:
if (preg_match('/[/[/]/', $keyword)) { ... }