Hey all, I need to do a regular expression to match the URL with a return status from an error log which looks like this:

title: test 7
size = 78
pick: 10.2.203.1, # servers = 1
8:8:1:http://10.2.203.1/test8.html: Retrieval command for http://10.2.203.1/test8.html: GET /test8.html HTTP/1.0
User-Agent: htdig/3.1.6
Referer: http://10.2.203.1/testlinks.html
Host: 10.2.203.1


Header line: HTTP/1.1 200 OK
Header line: Date: Tue, 04 May 2004 11:55:52 GMT
Header line: Server: Apache
Header line: Last-Modified: Fri, 30 Apr 2004 14:25:19 GMT
Converted Fri, 30 Apr 2004 14:25:19 GMT to Fri, 30 Apr 2004 14:25:19
Header line: ETag: "7eea6-4e-409261cf"
Header line: Accept-Ranges: bytes
Header line: Content-Length: 78
Header line: Connection: close
Header line: Content-Type: text/html
Header line:
returnStatus = 0
Read 78 from document
Read a total of 78 bytes

The logs repeat similar information for each URL in the log. How would I construct an expression that will match this from all of this text?



Thanks in advance for any tips.

Graeme :)

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to