I don't really like the amount of configuration we've been copying directly from Okapi.  It seems a bit cargo-cultish.    What if there's a bug in one of the regexes?

In any case, could you please add a comment to say where it came from?