According to the code, it looks like changing this tunable should allow one to match larger regular expression than the default of 1024 * 1024 characters. But it does not appear to work. Need to investigate. This is seen with a Jpeg2k schema that requires regular expressions that matches many bytes to scan through the data.