ADD Amélioration de l'update des films déjà en BD
[pompage.git] / src / test.rb
index 9a4edba..3a68b87 100644 (file)
@@ -1,8 +1,3 @@
 # coding: utf-8\r
-html = '<table cellpadding="0" cellspacing="0" border="0" width="750" style="margin: 0 0 10 0;"><tr><td valign="top" width="120"><img src="http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/acmedia/medias/nmedia/18/35/06/77/afte.jpg" border="0" alt="" class="affichette" />'\r
-/<img src="(.*?)" border="0" alt="" class="affichette" \/>/ =~ html\r
-url = URI.parse($1)               \r
-p url.host\r
 \r
-nbRetry = 0\r
-p "youpla" if (nbRetry += 1) < 5     
\ No newline at end of file
+p "image".match(Regexp::new("image", true))
\ No newline at end of file