I\'m trying to split this string in PHP:
11.11.11.11 - - [25/Jan/2000:14:00:01 +0100] \"GET /1986.js HTTP/1.1\" 200 932 \"http://domain.com/index.html\" \"Mozill
This log format seems to be the Apache’s combined log format. Try this regular expression:
/^(\S+) \S+ \S+ \[([^\]]+)\] "([A-Z]+)[^"]*" \d+ \d+ "[^"]*" "([^"]*)"$/m
The matching groups are as follows:
But the domain is not listed there. The second quoted string is the Referer value.