lua-users home
lua-l archive

regex options

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


While we are on the subject of regex, could we think about
os.files() (lposix) and io.lines() with an extra optional regex
parameter?
e.g.
-- select lines with regex
for line in io.lines("filename", "^%d") do
end
-- select files with regex
for line in os.files("/", "%.lua$") do
end
db

AltStyle によって変換されたページ (->オリジナル) /