From: Robert Klemme Date: 2012-12-03T01:21:28+09:00 Subject: Re: URI regex help On Sun, Dec 2, 2012 at 5:18 PM, Pierre-Andre M. wrote: > That syntax doesnt appear to work: > > 1.9.3-p194 :016 > > URI.parse("https://api.github.com/repos/orgName/final").path. > 1.9.3-p194 :017 > > URI.parse("https://api.github.com/repos/orgName/final").path.. > 1.9.3-p194 :018 > > URI.parse("https://api.github.com/repos/orgName/final").path... > 1.9.3-p194 :019 > > URI.parse("https://api.github.com/repos/orgName/final").path.... Yes, of course. That's not even valid Ruby code. $ ruby -ce 'URI.parse("https://api.github.com/repos/orgName/final").path.' -e:1: syntax error, unexpected $end $ ruby -ce 'URI.parse("https://api.github.com/repos/orgName/final").path..' -e:1: syntax error, unexpected $end But this is not what Hassan suggested. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/