[Libreoffice-bugs] [Bug 118505] When using regex and find.text different positions (begining or the end of string) are returned.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 3 16:16:34 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118505

--- Comment #5 from Eike Rathke <erack at redhat.com> ---
Testing expressions in an online tester (for example https://regex101.com/) may
help, it even gives some explanation about the expression entered and if
quantifiers are greedy/docile/lazy/possessive. The default PCRE dialect is fine
and quite close to the Java inspired regex of ICU, though there are subtle
differences. Note that the match offsets in that tester (and others) are
0-based while in Calc they are 1-based. For the quantifiers subtleties see
https://www.rexegg.com/regex-quantifiers.html

-- 
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/20180703/efae25f1/attachment.html>


More information about the Libreoffice-bugs mailing list