I'm struggling to create a regex for Apache logs. It's for
I'd really like to be able to put something like
/house to catch all files in that directory or
/house/jonross.html specifically to match just that HTML file. The log format I'm using is below.
The field is the one where
/city/index.html is in this example.
66-121-89-14.domain.com - - [14/Apr/2011:14:47:05 +0100] "GET /city/index.html HTTP/1.1" 200 2577 "http://www.domain.com/referrer/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:22.214.171.124) Gecko/20110319 Firefox/3.6.16"
Can a regex whizz please help ?