2 html_tag
= regex("<(.*?)>")
3 src
= '<html>dadas<head>dsa</head></html>'
5 while html_tag
:search(src
, regex
.match_default
) do
6 print('tag: ' .. html_tag
:what(1))
7 src
= string.sub(src
, html_tag
:position(0) + html_tag
:length(0))
10 print('-------------')