https://bugs.freedesktop.org/show_bug.cgi?id=47659
Bug #: 47659
Summary: EDITING: Search&Replace with Regexp fails on multiple
match
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.5.0 Release
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Status Whiteboard: BSA
Severity: normal
Priority: medium
Component: Spreadsheet
AssignedTo: [email protected]
ReportedBy: [email protected]
Problem description:
When searching with regexp, and replacing (all) using references ($1...), if
the string of a cell has multiple matches, only the first replacement works.
Following ones fail because the replacement reference is incorrect.
The problem only occurs with "replace all".
Steps to reproduce:
1. In a cell, enter this string: "123_456"
2. Open the search box, check "regular expressions", and enter the following:
Search: ([:digit:]{3})
Replace: $1
3. Click "Replace all"
Current behavior:
The value of the cell becomes 123_123
Expected behavior:
The value of the cell should be 123_456
NOTE: the original case in which the bug was found was more complicated and
leaded to even more weird results. Here it is in case it helps:
http://nabble.documentfoundation.org/Calc-Bug-in-Search-replace-with-regexp-tc3844337.html
Platform (if different from the browser):
Windows 7 64bit
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101
Firefox/11.0
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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