Hello everyone,
I have a string from an apache log file:
192.168.1.1 - - [05/Jul/2001:22:48:51 -0500] "GET /test.php HTTP/1.1"
200 995
How could I get the IP (192.168.1.1) out of that? I've been playing
with regexps like this:
if/(.*)\s-\s-\s/;
but I have no idea if that's correct or not. Can anybody offer any
help?
Thanks,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]