Quote:
Originally Posted by The_book
It's just I uesd to use regex in javascript or python, which have a flag argument which can control case sensitivity, DotAll or other things. So I think case sensitivity is a opinion like DotAll and I don't know to use (?i).
And now I learn it. Thank you.
|
Calibre Editor's "Case Insensitive" applies to Regex searches.
So this text:
Code:
This is a test Case case.
with this Regex:
By default, Sigil/Calibre will only match lowercase "case".
If you check the Case Insensitive box, Calibre matches both "Case" and "case". (I haven't looked in source, but I assume Calibre secretly adds (?i) to the Regex if the box is checked?)