<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - F&R: Trying to replace text found with Regular Expression using zero-length-assertions $1 and respective is wrongly taken for literal"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111646">111646</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>F&R: Trying to replace text found with Regular Expression using zero-length-assertions $1 and respective is wrongly taken for literal
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jag@psilosoph.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=135421" name="attach_135421" title="The example mentioned in the original bug report">attachment 135421</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=135421&action=edit" title="The example mentioned in the original bug report">[details]</a></span>
The example mentioned in the original bug report

Searching for text using zero-length-assertions both sides and trying to
replace then using $1 and so on as implicit variablles for found groups results
in different errors under certain conditions. 
-1- 'Find Next' and subsequent 'Replace': No action.
-2- 'Replac All': The group variables are wrongly inserted as literals.

SAME replacements in Calc are done as expeczed.
Steps to reproduce: Too many, to difficult (for me) to describe unambiguously.

See attached example.</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>