Im using eregi() function for matching the string but it is giving the following error :-
PHP Warning: eregi() [<a href='function.eregi'>function.eregi</a>]: REG_EPAREN in /a/b/c/mysite/file.php on line 59, referer: xyz.com
im using this function here :-
if(eregi($check,$in))
{
$titles=ucfirst(substr($desc, 0, 38));
}
else
{
$titles=$title." : ".$add_desc;
}
where $check & $in is containing text type data which can be anything from alphanumeric to special characters.
what could be the possible reason for this error and how to fix it ??