local s = "[A-Z\\]+" local r = regex.new(s) local m = r:match("some text with \\.")