To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=82473
------- Additional comments from [EMAIL PROTECTED] Tue Nov 6 19:25:05 +0000 2007 ------- > In the bug case unfortunately the replacement has an effect to the > following search (because we replace the characters with nothing the > following character becomes the first of the paragraph). Well, I'm no regex lawyer, so I can't say that it's "wrong" or if it's a bug or not, but as a long-time regex user, I can say that no other regex function that I've ever seen works this way. And it seems pretty clear to me that the way OOo handles this currently is not useful, if not wrong outright. E.g.: $ echo ABC | sed -e 's/^.//g' BC $ echo ABC | perl -pe 's/^.//g' BC So, neither sed nor perl consume the entire string, as OOo does. By the above logic, the pattern "^" would match an infinite number of times on the first line! Instead, it matches only once for each line: $ ls /tmp | wc -l 93 $ ls /tmp | grep '^' | wc -l 93 $ ls /tmp | sed -ne '/^/p' | wc -l 93 $ ls /tmp | perl -ne 'print if /^/' | wc -l 93 In OOo, the pattern "^" never matches anywhere at all. I know almost nothing about coding a regex engine, but this sounds more like part of the engine logic than part of the text positioning: If a match begins at an anchor, then the next iteration must logically start *after* (beyond) the anchor, replacement or not. If the user re-runs the Find/Replace, then yes, the same positions should match again, but not during the same "Replace All". --------------------------------------------------------------------- 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]
