From: Arturo 'Buanzo' Busleiman Date: 2004-12-26T21:56:09+09:00 Subject: Re: Net::HTTPResponse extracting name=value from "set-cookies" --------------000301060902010409000305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Glenn Parker wrote: > pkv = Regexp.new(';?\s*(?:Path=([^,]+),?)?\s*(?:([^=]+)=([^;]+))?') > input.scan(pkv) do |path, key, value| > puts "path=#{path} key=#{key} value=#{value}" > end Whoa! Thank you very much! Now I'll try to understand that regexp, and learn from it. Thanks for your precious time :) -- Arturo "Buanzo" Busleiman - www.buanzo.com.ar - GNU/Linux Documentation President, Open Information System Security Group - Argentina In the darkest night, If my memory serves me right, I'll never turn back time, Forgetting you, but not the time (Green Day, Whatsername) --------------000301060902010409000305 Content-Type: text/x-vcard; charset=utf-8; name="buanzo.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="buanzo.vcf" begin:vcard fn:Arturo 'Buanzo' Busleiman n:Busleiman;Arturo org:OISSG adr:;;;;BA;;Argentina email;internet:buanzo@buanzo.com.ar x-mozilla-html:FALSE url:http://www.buanzo.com.ar version:2.1 end:vcard --------------000301060902010409000305--