optimize: ngx.re.sub/ngx.re.gsub: eliminated use of the "lib/resty/core/regex.lua" operator because the underlying lj_tab_len function has a cost.