Add missing index_tuple.hpp header.
[luabind.git] / examples / regexp / regex.lua
blob33df5a8e7a9f3845ed47d874bf143491c6e269af
2 html_tag = regex("<(.*?)>")
3 src = '<html>dadas<head>dsa</head></html>'
5 while html_tag:search(src) do
6 print('tag: ' .. html_tag:what(1))
7 src = string.sub(src, html_tag:position(0) + html_tag:length(0))
8 end
10 print('-------------')