[Libreoffice-bugs] [Bug 144723] regular expression in find and replace is case insensitive
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 25 18:04:45 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=144723
--- Comment #9 from Mike Kaganski <mikekaganski at hotmail.com> ---
For the reference:
LibreOffice uses ICU regex engine. You may look at 'Case Insensitive Matching'
in its help page [1]. It reads:
> Case insensitive matching is specified by the UREGEX_CASE_INSENSITIVE flag
> during pattern compilation ...
This is ~same for any other regex engines: software defines case sensitivity
applied to *compiled regex*; and then user *may* re-define the flags inside the
regex.
You seem to not be familiar with this concept, but you may look at
re.IGNORECASE flag in Python's regex [2] doing the same when passed to its
compile.
So the checkbox in the dialog controls just that, and it is consistent and
correct.
[1]
https://unicode-org.github.io/icu/userguide/strings/regexp.html#case-insensitive-matching
[2] https://docs.python.org/3/library/re.html#re.I
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210925/433fcd17/attachment.htm>
More information about the Libreoffice-bugs
mailing list