repo.or.cz
/
luabind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing index_tuple.hpp header.
[luabind.git]
/
examples
/
regexp
/
regex.lua
blob
33df5a8e7a9f3845ed47d874bf143491c6e269af
1
2
html_tag
=
regex
(
"<(.*?)>"
)
3
src
=
'<html>dadas<head>dsa</head></html>'
4
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
9
10
print
(
'-------------'
)
11
12