Matcher match = valid.matcher(line);
Matcher match;  if (line.indexOf(":ip_addr") > 0) { match = valid14.matcher(line); } else { match = valid13.matcher(line); }
    public static LogLine getLogLine(String line)    {        // FIXME: consider moving this code into the LogLine class.  To do this        // we need to much more carefully define the structure and behaviour        // of the LogLine class        Matcher match = valid.matcher(line);                if (match.matches())        {            // set up a new log line object            LogLine logLine = new LogLine(parseDate(match.group(1).trim()),                                          match.group(2).trim(),                                          match.group(3).trim(),                                          match.group(4).trim(),                                          match.group(5).trim());                        return logLine;        }        else        {            return null;        }    }