incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120598] Apache Find/Replace Flaw in OpenOffice 3.4.0
Date Fri, 07 Sep 2012 13:46:43 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120598

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from hdu@apache.org ---
The new ICU-regexp engine has many benefits such as much improved unicode
support and support back references, non-greed matches, look-ahead,
look-behind, match count limits, graphemes, atomic matches, non-capturing
matches, possessive matches etc. It didn't directly support the GRE-only \< and
\> word-break operators though, so they were emulated by plain word-break
operators.

The fix just commited improves the emulation considerably using the newer
engines look-around features by emulating the
- word-start operator as \b(?=\w)
- word-end operator as (?<=\w)\b

Until this gets into the next release the workaround for the issue reporter is
to replace the "\< with "\b(?=\w) and the \>" with (?<=\w)\b

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message