Posted 12 March 2013 - 07:18 AM
Is it possible to use string.gmatch( p ) for text like this?
(Yeah second line has indentation)
I've tried this:
But it prints nothing
<!-- ad -->
<!--cached-tue 11 mar-->I need text here
<!-- ad -->
(Yeah second line has indentation)
I've tried this:
content = [[<!-- ad -->
<!--cached-tue 11 mar-->I need text here
<!-- ad -->]]
for _, text in content:gmatch(
[[<!-- google_ad_section_start -->
<!--cached-(.+)-->(.-)
<!-- google_ad_section_end -->]]
) do
print( text )
end
But it prints nothing