comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:5f46babb607c
1
2 x = arg[1]
3 y = arg[2]
4
5 print(x,y)
6
7 file = assert(io.open("test.html"))
8
9 for str in file:lines() do
10 tmp = string.match(str,"<a.+href=\"")
11 if (tmp) then
12 print(tmp)
13 end
14 end
15
16
17
18 file:close()