Bug 326151
Summary: | Regular expression that matchs start of paragraph and removes content gets compared against remaining content again | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Pazdziora <jpazdziora> |
Component: | openoffice.org | Assignee: | Caolan McNamara <caolanm> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 7 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-10-16 08:37:29 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Pazdziora
2007-10-10 11:59:59 UTC
It seems that after the first replace the remaining string then matches the pattern, and the replace all is getting re-run after the first replace where it now matches the pattern again and so the second replace takes place. i.e. for replace all, instead of echo ABCZDEFZGHI | sed -r -e 's/^[^Z]+Z//' we have effectively echo ABCZDEFZGHI | sed -r -e 's/^[^Z]+Z//' | sed -r -e 's/^[^Z]+Z//' Here's a more concise example, i.e. search string of ^.{3} and no replace string to remove the first 3 characters, with the above example it keeps removing a block of 3 characters until only 2 are left with "replace all" Moving upstream, affects us all: i.e. http://www.openoffice.org/issues/show_bug.cgi?id=82473 |