On Fri, Feb 18, 2011 at 11:02 PM, John Doe
<netiqicufenihyse / tempomail.fr> wrote:
> foo.bar/somePath/somepage.php?attr=value&theone=64646hs554&other=ddd
> What I need is the value of the "theone" attribute.

there are many ways.
sometimes,  we just need to focus on what we need...  eg,

Hash[* "foo.bar/somePath/somepage.php?attr=value&theone=64646hs554&other=ddd".scan(/(\w+)=(\w+)/).flatten]

#=> {"attr"=>"value", "theone"=>"64646hs554", "other"=>"ddd"}


best regards -botp