Gone around the houses on this one tonight. All I want to do is pull out the csrf-token in the following script however it returns nil
local html = '<meta content="authenticity_token" name="csrf-param" /><meta content="ndcZ+Vp8MuM/hF6LizdrvJqgcRh22zF8w/DnIX0DvR0=" name="csrf-token" />'
local csrf_token = string.match(html, 'content="(.*)" name="csrf-token"')
If I modify the script and take off the "-token" part it matches something, but not the right thing of course.
I know it is the hyphen because if I modify the string to be "csrftoken" and the match it finds works as expected.
I attempted to escape the - like so \-
but that threw an error...
elp...