> Is there a limit to how big those sets can be? In practice I'd be > looking at a few dozen allowed chars. No limit. But as Francisco Olarte said, you may need to escape magic characters. See http://www.lua.org/manual/5.3/manual.html#6.4.1