<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:michael.warner.ut+libreoffice@gmail.com" title="Michael Warner <michael.warner.ut+libreoffice@gmail.com>"> <span class="fn">Michael Warner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Search-Replace: Regular Expression engine fails on zero length matches"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135538">bug 135538</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">Component</td>
<td>UI
</td>
<td>LibreOffice
</td>
</tr>
<tr>
<td style="text-align:right;">See Also</td>
<td>
</td>
<td>https://bz.apache.org/ooo/show_bug.cgi?id=118887
</td>
</tr>
<tr>
<td style="text-align:right;">Version</td>
<td>7.0.0.3 release
</td>
<td>3.3.0 release
</td>
</tr>
<tr>
<td style="text-align:right;">Keywords</td>
<td>
</td>
<td>needsUXEval
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>NEW
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Search-Replace: Regular Expression engine fails on zero length matches"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135538#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Search-Replace: Regular Expression engine fails on zero length matches"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135538">bug 135538</a>
from <span class="vcard"><a class="email" href="mailto:michael.warner.ut+libreoffice@gmail.com" title="Michael Warner <michael.warner.ut+libreoffice@gmail.com>"> <span class="fn">Michael Warner</span></a>
</span></b>
<pre>I am able to confirm this in:
Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group
I didn't trace through it while executing, so I may be looking at the wrong
place for this particular test case, but
core/i18npool/source/search/textsearch.cxx lines 942-952 state explicitly that
they are there to ignore zero-length matches. The specific comment is this:
// #i118887# ignore zero-length matches e.g. "a*" in "bc"
It was a decision made in OpenOffice (I added the link to their bug in the See
Also field).
So this is intended behavior to avoid the matching-every-position case, not a
bug.
Whether it should be intended behavior and how to address it is another
question. Personally, I tend to think that users searching for regular
expressions are knowledgeable about the regex pattern they are providing (or
should be) and therefore we should match the pattern as written.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>