How would I extract in Lua a text between a pattern. For example
s="this is a test string. <!2014-05-03 23:12:08!> something more"
- I would need only the date/time as result:
2014-05-03 23:12:08
print(string.gsub(s, "%<!.-%!>"))
doesn't work - I would need all the text WITHOUT the date/time like:
"this is a test string. something more"