Hi! I need some help with a reg exp… I'm building a little viewer for my http access logs, and what i'ld like to do is to clean it from alla hits from my own ip…
Take for example: 194.236.30.24 - - [30/Aug/2002:11:46:29 +0200] "GET /bildgalleri/createjpg.php?url=/v044&file=v044_27.jpg HTTP/1.1" 200 8874 217.215.84.222 - - [30/Aug/2002:11:46:39 +0200] "POST /weblogg.php HTTP/1.1" 200 3149488 194.236.30.24 - - [30/Aug/2002:11:46:43 +0200] "GET /bildgalleri/showpicture.php?url=%2Fv044&file=v044_21.jpg HTTP/1.1" 200 450 217.215.84.222 - - [30/Aug/2002:11:46:47 +0200] "POST /weblogg.php HTTP/1.1" 200 3149705 194.236.30.24 - - [30/Aug/2002:11:46:49 +0200] "GET /bildgalleri/createjpg.php?url=/ v044&file=v044_21.jpg&quality=better&max_side=big HTTP/1.1" 200 69110 217.215.84.222 - - [30/Aug/2002:11:47:48 +0200] "POST /weblogg.php HTTP/1.1" 200 3149813 217.215.84.222 - - [30/Aug/2002:11:48:09 +0200] "POST /weblogg.php HTTP/1.1" 200 3149902 Here I'ld like to remove all lines that looks like 217.215.84.222 some text ending with line break… How should the reg exp look? Many thanks, Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php