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:
3. Click "Replace all"
The value of the cell becomes 123_123
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:
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
This looks like a duplicate of Bug 44861.
*** This bug has been marked as a duplicate of bug 44861 ***