Issue 95029 - Replace regular expression with blank string is recursive
Summary: Replace regular expression with blank string is recursive
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOO300m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 96868 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-10-16 17:43 UTC by cmclout
Modified: 2013-01-29 21:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Description and tests for defect "Replace regular expression with blank string is recursive" (10.78 KB, application/vnd.oasis.opendocument.text)
2008-10-16 17:46 UTC, cmclout
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description cmclout 2008-10-16 17:43:08 UTC
When searching for a regular expression, and replacing with a blank string, both
"Replace" and "Replace All" recursively replace the search string.  If you enter
any replacement text, it appears to work properly, but replacing with a blank
string results in the incorrect behavior.

For example, enter a couple of lines with repeating "a" characters, then do a
regular expression search for "^aa", leaving the "Replace With" box blank.  When
you do a "Replace" or "Replace All", it will correctly remove the first two "a"
characters from the line, but then it will check that same line again and remove
the next two; it will repeat this until there are less than two "a" characters
at the beginning of the line, and only then will it move to the next line.  If
you enter anything in the "Replace With" box, even if you enter "aa", it will
correctly only replace once then move on to the next line.
Comment 1 cmclout 2008-10-16 17:46:49 UTC
Created attachment 57179 [details]
Description and tests for defect "Replace regular expression with blank string is recursive"
Comment 2 cmclout 2008-10-16 17:51:45 UTC
In case it matters, I originally noticed this behavior a few days ago in version
2.4.1, then tested and verified the behavior in version 3.0.
Comment 3 michael.ruess 2008-10-17 10:41:17 UTC
Reassigned to SBA.
Comment 4 lohmaier 2009-06-12 16:17:09 UTC
confirmed
Comment 5 lohmaier 2009-06-12 16:17:27 UTC
*** Issue 96868 has been marked as a duplicate of this issue. ***