<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 - regular expression in find and replace is case insensitive"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=144723">144723</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>regular expression in find and replace is case insensitive
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.2.1.1 rc
          </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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>testing1237a-c@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
i suppose this is a bug in find and replace "regular expressions" checkbox
which accepts regex but one that is case insensitive while =regex correctly
detects case sensitivity in expressions. attached screenshot containing find
and replace finding the test while =regex does not

Steps to Reproduce:
1. open file regex.odt . check if regex is working, both small "p" and capital
"P" in two rows. the same is confirmed by checking the string and expression on
online regex testers like <a href="https://regex101.com/">https://regex101.com/</a> and
<a href="https://www.regextester.com/">https://www.regextester.com/</a>
2. Now, copy small p string and go to find and replace "ctrl+h" and select
regular expressions.


Actual Results:
find and replace with regular expressions checked should not detect any string
because the string contains small "p" but the text contains capital "P" but
find and replace still finds it. This is wrong behaviour

Expected Results:
find and replace should follow =regex and be case sensitive so that building
expressions should be same in find and in formulae




Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.1.2 / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Flatpak
Calc: threaded</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>