Hey all I’m trying to decode a string I got from a website using string patterns, and it seems I did everything right but it keeps returning nil
local _string = [[<span class="js-symbol-rtc-time">(08:59 UTC-5)]]
local _variable = _string:match([[<span class="js%-symbol%-rtc%-time">%([%d+]%p[%d+]%s[%u+]%-%)]])
print(_variable)
Here’s the string patterns:
Here’s the magic characters
it’s obvious that in the string there are magic characters, and I preceed them with a % symbol, I don’t know what I’m doing wrong.