From: bigbrother Date: 2007-12-21T14:24:58+09:00 Subject: Re: New to ruby On Dec 20, 11:09 pm, bigbrother wrote: > On Dec 18, 5:06 pm, Drew Olson wrote: > > > Drew Olson wrote: > > > Joshua Thomas wrote: > > >> On Dec 18, 2:59 pm, Sebastian Hungerecker > > >> wrote: > > >> Sorry guys, I'm really new to programming. > > > > Ok, based on feedback from people in the thread and re-reading your > > > Ugh, US= should be UN=, sorry for the multiple emails. > > > -Drew > > > -- > > Posted viahttp://www.ruby-forum.com/. > > Thanks for the help. Can you answer a few questions though? > ok when it prints out the user requests, is there a way I can use > regex to get just a URL? That's really what I need in that array. > Thanks for all your help. I've got a book on ruby and will start > reading it when I get the chance Guess I should clarify, the first bit of regex works fine, gets the users and selects the user with the most requests. But when it prints out the requests it does this User name: tendercarepro Requests: 70.xxx.xxx.xxx- - [13/Dec/2007:09:44:39 -0600] "GET / v700.php?GN=tendercarepro@thefilternet.com&UN=tendercarepro&URL=http:// s.wsj.net/public/resources/images/OB-AV076_Umami_20071205151444.jpg HTTP/1.1" 200 17 "-" "Filter7" I want to strip out everything but the base URL, in this case http://s.wsj.net/public/resources/images/OB-AV076_Umami_20071205151444.jpg (taken from my firewall logs) sorry if I'm annoying you guys, you've been a huge help