You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/02/16 16:21:44 UTC

DO NOT REPLY [Bug 118925] New: ICU Regex: look-ahead and look-behind are not work well with replacement

https://issues.apache.org/ooo/show_bug.cgi?id=118925

             Bug #: 118925
        Issue Type: DEFECT
           Summary: ICU Regex: look-ahead and look-behind are not work
                    well with replacement
    Classification: Application
           Product: Word processor
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: code
        AssignedTo: ooo-issues@incubator.apache.org
        ReportedBy: hanya.runo@gmail.com


On revision 1240836 from unofficial dev build.

Text: abcdef

Search for: ab(?=c)
Replace with: -$0-
This look-ahead matches "ab" for search but replacement results "-$0-cdef"

Next look-behind example does not match anymore.
Search for: (?<=b)c
This should be match with "c" but recent build does not match with it. With
Python's re module, it matches "c".

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 118925] ICU Regex: look-ahead and look-behind are not work well with replacement

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118925

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED
                 CC|                            |hdu@apache.org
         AssignedTo|ooo-issues@incubator.apache |hdu@apache.org
                   |.org                        |

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

3.4.1_release_blocker requested: [Bug 118925] ICU Regex: look-ahead and look-behind are not work well with replacement

Posted by bu...@apache.org.
hdu@apache.org has asked  for 3.4.1_release_blocker:
Bug 118925: ICU Regex: look-ahead and look-behind are not work well with
replacement
https://issues.apache.org/ooo/show_bug.cgi?id=118925


------- Additional Comments from hdu@apache.org
Requesting the 3.4.1 flag for this issue: Writer should keep up with the
features of the regexp engine that has become much more powerful with AOO
3.4.0. Otherwise the asymmetry between the Find and the Replacement
functionality would be too confusing.

3.4.1_release_blocker granted: [Bug 118925] ICU Regex: look-ahead and look-behind are not work well with replacement

Posted by bu...@apache.org.
jsc@apache.org has granted hdu@apache.org's request for 3.4.1_release_blocker:
Bug 118925: ICU Regex: look-ahead and look-behind are not work well with
replacement
https://issues.apache.org/ooo/show_bug.cgi?id=118925


------- Additional Comments from jsc@apache.org
set release blocker flag for 3.4.1

we exchanged the regex engine for 3.4 and this fix will improve/finalize the
replacmeent