Mercurial > hg > Members > nobuyasu > lua_ba > getHtmlToLocal
view linkParse.lua @ 0:5f46babb607c draft default tip
add some files
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Oct 2012 13:49:50 +0900 |
parents | |
children |
line wrap: on
line source
x = arg[1] y = arg[2] print(x,y) file = assert(io.open("test.html")) for str in file:lines() do tmp = string.match(str,"<a.+href=\"") if (tmp) then print(tmp) end end file:close()