View Single Post
Old 02-29-2020, 06:10 PM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by The_book View Post
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:

Code:
[c]ase
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?)
Tex2002ans is offline   Reply With Quote