hey guys,
I am having a problem parsing a data file, I have a log file that I want to read from that looks like:
Thu May 9 11:19:52 2002 LOGIN 0 Bob LAB 99-99-99-99-99-9 999.99.999.99 999.99.99.99 JANE L_LOG_1_0
and I had been using the following to parse it:
while (list($key, $val) = each ($content))
{
if ($counter>0)
{
$name=chop($content[$counter]);
$data =explode("\t", $name); //parse by tab
$data2 =explode(" ", $name); //parse by whitespace
but when I got a new data file, one with dates that had two digits (ie 10, 11 etc..) my parser no longer works because there is no longer the two spaces between the month and the date..I don't know how to get around this. Any suggestions? Help!