hey guys/gals i got a problem when i try to read a file and search through it for specific text i get a REG_ errors.. such as reg_ectype
<BODY>
<CENTER>
<?
$gossip_file = file("http://www.materiamagica.com/towne/gossip");
while(list($line_num, $line) = each($gossip_file))
{
if(eregi(": ([[::space::]]+) was slain by ([[::space::]]+) in player-to-player combat", $line))
{
print("$line[0] $line[1]");
}
}
?>
</body>
a example line in the file would be like
: Spud was slain by Nick in player-to-player combat.
thanks for the help!!