I've used this bit of code with no problems before, but now I'm getting and error:
Warning: ereg_replace() [function.ereg-replace]: REG_BADBR in /path/newstest.php4 on line 148
line 148 is the 3rd line below:
//display first 300 characters without cutting words in half
$length = 300;
$mySubstring = ereg_replace("^(.{1,$length})[ .,].*", "\\1",$longstring);
printf ("<p><font face = %s>%s</font></p>",$font,nl2br($mySubstring));
any ideas?
also is there a list of error messages some where? If I knew what REG_BADBR meant I might be able to get somewhere
Julia