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

            Bug ID: 94810
           Summary: "Replace All" using regex gives wrong results
           Product: LibreOffice
           Version: 4.4.2.2 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

The problem is reproducible both in Calc and in Writer.

Steps to reproduce in Calc:

1. Create new spreadsheet
2. In A1, enter text "11 22 33 44 55 66" (without quotes), then press Enter
3. Open "Find&Replace" dialog (Ctrl+H), Search For "([^ ]*)[ ]*([^ ]*)"
(without quotes), Replace With "$1$2" (without quotes), check Other
Options->Regular Expressions.
4. Click "Replace All".

Expected result:
A1 should contain "112233445566"

Actual result:
A1 contains 1122 33 44 5533 553344 44 5533 55334455 33 44 5533 553344 44 5533
5533445566

Doing the same in Writer gives 1122333344333344553333443333445566.

Tested with 4.4.2.2 and Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: ru-RU (ru_RU)
under Win7x64.

See also https://bz.apache.org/ooo/show_bug.cgi?id=107619
See also Bug 44861

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to