2
I have a string in Lua language. I want to get only the part of filename
through the match (403.htm.en
).
Example:
var=[[Content-Disposition: attachment; filename="403.htm.en"
Content-Type: text/plain; name='403.htm.en'
Content-Transfer-Encoding: BASE64
]]
filename = string.match(var,"filename(.+)")
print("filename", filename)