.
This commit is contained in:
parent
736707a5bb
commit
0db0fe949f
@ -37,9 +37,19 @@ local lines = lines_from(file)
|
||||
--end
|
||||
|
||||
|
||||
|
||||
for k,v in pairs(lines) do
|
||||
if string.match(v, "green") then
|
||||
print(k .. ": yay")
|
||||
-- lines containing "green"
|
||||
xStart = string.find(v, "x=\"")
|
||||
xEnd = string.find(v, "\" y=")
|
||||
yStart = string.find(v, "y=\"")
|
||||
yEnd = string.find(v, "\" st")
|
||||
|
||||
xStr = string.sub(v, xStart, xEnd)
|
||||
yStr = string.sub(v, yStart, yEnd)
|
||||
print(xStr .. " " .. yStr)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user