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

            Bug ID: 143759
           Summary: Inaccurate results when searching for empty cells with
                    regex ^$
           Product: LibreOffice
           Version: 6.2.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: stephane.guil...@member.fsf.org

Description:
Searching for empty cells with a regular expression (inside a selection)
results in inaccurate results:
- empty cells that are part of the selection are not matched
- empty cells that are not part of the selection are matched

Steps to Reproduce:
1. Open attachment
2. Select range that goes beyond all cells with data, on all sides. For this
example, use the range A1:F6
3. Open Search & Replace dialog
4. Tick "Regular Expression" and "Current selection only"
5. Use the regular expression "^$" in the "Find" field (without quotes)
6. Click "Find All"

Actual Results:
In the resulting selection:
- empty cells that are part of the selection are not matched (e.g. in row 1 and
column A)
- empty cells that are not part of the selection are matched (e.g. in column D)

Expected Results:
All cells that are empty in the selected range are matched. Nothing more,
nothing less.


Reproducible: Always


User Profile Reset: No



Additional Info:
Observed in:

Version: 6.2.5.2
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

and

Version: 7.0.6.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.6-0ubuntu0.20.04.1_lo1
Calc: threaded

and

Version: 7.2.0.2 / LibreOffice Community
Build ID: 614be4f5c67816389257027dc5e56c801a547089
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 1dd4a80fa076bedb3a82821517036bad8dd79857
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time:
2021-07-26_22:41:19
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to