Calibre typically uses the Barnett regex Python module (where Sigil uses PCRE). I don't know if the Barnett module allows the granular use of the case insensitive flag to control portions of expressions or not (the standard python re module does not). I think it depends on how the module is compiled. If it doesn't, a global "switch" makes more sense.
|