To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82473
                 Issue #|82473
                 Summary|Regular Expressions that replace-all can match the res
                        |ult of the replace
               Component|Word processor
                 Version|OOo 2.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mru
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Wed Oct 10 12:50:28 +0000 
2007 -------
i.e. consider a writer document with just ABCZDEFZGHI in it. If we use a regexp 
of
^[^Z]+Z
then we want to match text that starts at the beginning of the paragraph that
has one of more characters that are not Z and that sequence followed with a
final Z, so taking the above example and just "find all", we simply match the
ABCZ above, the problem arises when we use "replace all" and set the replace
string to nothing, then we get GHI. We're replacing the ABCZ with nothing, but
then we're apparently re-running the regexp on DEFZGHI which is now the new
beginning of the paragraph.

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//'

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to