X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=blobdiff_plain;f=src%2Ftest.rb;h=d35033e7b3cf1c2e59629e762788de6ff74ab6a9;hp=dcc633c5ca3e5db9590f927d9f9402566d084c38;hb=HEAD;hpb=28e1ecf7c5b45d5deeb87d488f32d44e0ea2fd11 diff --git a/src/test.rb b/src/test.rb index dcc633c..d35033e 100644 --- a/src/test.rb +++ b/src/test.rb @@ -1,18 +1,3 @@ -# coding: utf-8 - -# doc : http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html -Net::HTTP.version_1_2 - -# hack : http://arosien.blogspot.com/2007/06/increasing-rubys-netbufferedio-buffer.html -module Net - class BufferedIO - def rbuf_fill - timeout(@read_timeout) { @rbuf << @io.sysread(32768) } - end - end -end - -connexion = Net::HTTP::new('www.allocine.fr').start -connexion.finish -html = connexion.get("/film/fichefilm_gen_cfilm=120576.html").body -p html \ No newline at end of file +m = 'balbla oljasdflaskj' +m =~ /\\<(.+)/ +p $1