in reply to Somewhat basic but long, practical RE problem
on page 726 (20.12 Parsing a Web Server Log File). Also check 20.13 (Processing Server Logs) for a snippet with format, or check Logfile::Apache.while(<LOGFILE>) { my ($client,$identuser,$authuser,$date,$time,$tz,$method,$url,$protoco +l,$status,$bytes) = /^(\S+) (\S+) (\S+) \[([^: ]+):(\d+:\d+:\d+) ([^\ +]]+) "(\S+) (.*?) (\S+)" (\S+) (\S+)$/; #... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Somewhat basic but long, practical RE problem
by nysus (Parson) on Jul 02, 2001 at 10:40 UTC |