MOD refactoring haskell...
[pompage.git] / src / test.rb
index dcc633c..d35033e 100644 (file)
@@ -1,18 +1,3 @@
-# coding: utf-8\r
-\r
-# doc : http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html\r
-Net::HTTP.version_1_2\r
-\r
-# hack : http://arosien.blogspot.com/2007/06/increasing-rubys-netbufferedio-buffer.html\r
-module Net\r
-   class BufferedIO\r
-      def rbuf_fill\r
-         timeout(@read_timeout) { @rbuf << @io.sysread(32768) }\r
-      end\r
-   end\r
-end\r
-\r
-connexion = Net::HTTP::new('www.allocine.fr').start\r
-connexion.finish\r
-html = connexion.get("/film/fichefilm_gen_cfilm=120576.html").body \r
-p html
\ No newline at end of file
+m = 'balbla  oljasdflaskj'\r
+m =~ /\\<(.+)/\r
+p $1\r