On Dec 21, 2007 1:24 PM, bigbrother <Cowboyninja / gmail.com> wrote: > I want to strip out everything but the base URL hint: botp@it:~$ irb irb(main):001:0> line=%q(1270.0.1 - - [13/Dec/2007:09:44:41 -0600] "GET /v700.php?GN=MosherHB&UN=mosherhb&URL=http://photos-179.ll.facebook.com/photos-ll-sctm/v43/151/5757353179/app_2_5757353179_5703.gif HTTP/1.1" 200 23 "-" "Filter7") => "1270.0.1 - - [13/Dec/2007:09:44:41 -0600] \"GET /v700.php?GN=MosherHB&UN=mosherhb&URL=http://photos-179.ll.facebook.com/photos-ll-sctm/v43/151/5757353179/app_2_5757353179_5703.gif HTTP/1.1\" 200 23 \"-\" \"Filter7\"" irb(main):002:0> user,url = line.match(/UN=(\w+)\&URL=(.+)\sHTTP/).captures => ["mosherhb", "http://photos-179.ll.facebook.com/photos-ll-sctm/v43/151/5757353179/app_2_5757353179_5703.gif"] irb(main):003:0> p user,url "mosherhb" "http://photos-179.ll.facebook.com/photos-ll-sctm/v43/151/5757353179/app_2_5757353179_5703.gif" => nil kind regards -botp