Issue 81730

Summary: Find and replace regular expressions (regex) replaces entire selection
Product: Writer Reporter: lars.nooden
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: hanya.runo, issues, mike.hall, per.ooo, petr.dudacek
Version: 4.1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.3.0rc3_20070911/OOo_2.3.0rc3_20070911_MacOSXIntel_X11_install_sv.dmg
Issue Type: DEFECT Latest Confirmation in: 4.2.0-dev
Developer Difficulty: ---

Description lars.nooden 2007-09-19 09:25:18 UTC
If a block of text is selected, and then Find & Replace is run with the Regex
option, then the entire selection is replaced, not just the string / expression
searched for.

http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.3.0rc3_20070911/OOo_2.3.0rc3_20070911_MacOSXIntel_X11_install_sv.dmg
Comment 2 rafaella.braconi 2007-10-17 15:33:12 UTC
Hi Stefan,

can you please have a look at this issue? Thx!
Comment 3 rafaella.braconi 2007-10-17 15:37:45 UTC
setting target milestone
Comment 4 mike_hall 2007-11-25 17:07:10 UTC
Doesn't need to have Regular Expressions checked. True for any 'Replace' if you
make a selection and don't do a Find first, even if the text in the Search for
box is not present in the selection. Problem is there in 2.3.0 on Vista as well
as on m9 and #237 on XP. If there is no selection, clicking 'Replace' does a
Find first, which is correct. However, 'Replace All' works correctly.

Is this not P2 as it leads to data loss? In certain circumstances eg if using a
macro, it could be quite hard to notice what has happened.
Comment 5 mike_hall 2007-11-25 17:11:26 UTC
... above comments apply to English versions.
Comment 6 rafaella.braconi 2008-04-04 10:08:37 UTC
Stefan,
can you please check if this is a langauge releated issue or not? thx!
Comment 7 stefan.baltzer 2008-06-09 15:13:59 UTC
This is NOT language-dependant. removed "[SV]" from summary.
Comment 8 per.ooo 2008-06-09 19:41:45 UTC
Hi Stefan,

Thank you for clearing this up. Is this concidered an issue, or would you like
to close it?

We can't fix the problem, if any, as we are not developers. If you do not
concider this an issue, please close.

Thanks a lot for your valuable time.

Kinds Regards
Per Eriksson
Comment 9 stefan.baltzer 2008-06-16 15:44:53 UTC
SBA->AMA: Please proceed, thx.