Hello,
I am trying to use ngx.re.match for multi-line string returns null. It works fine with single line string. I tried using options "m" but doesn't help
### Single Line ###
local s="\n\n<key>abcd</key>fdfdsds"
local m=ngx.re.match(s,"<key>(.*)</key>", "jo")
print(m[1])
-- abcd
###Multi Line###
but if I change string multiline, it returns null
local s=[[ \n\n<key>abcd
</key>fdfdsds]]
local m=ngx.re.match(s,"<key>(.*)</key>", "jom")
print(m[1])
-- m is null