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/05/28 09:57:14 UTC

[Bug 119437] New: Inconsistency with RegExp and references

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

          Priority: P3
            Bug ID: 119437
          Assignee: ooo-issues@incubator.apache.org
           Summary: Inconsistency with RegExp and references
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: All
          Reporter: rgb-es@apache.org
          Hardware: PC
            Status: CONFIRMED
           Version: AOO340
         Component: editing
           Product: word processor

On Writer, write this text

One repeated repeated wordword

(notice the second duplication *without* a space between words) Now use this
regular expression

\b(.+) *\1\b

Duplicated words are find without problems, but if on "Replace by" you write

$1

you'll get

One repeated $1

i.e., the replace works Ok on first duplicated word, but not on the second. 

Now, on the original text try this regular expression

\b(\w+) *\1\b

i.e., replace the dot with a "word element" \w. With $1 on "Replace by" you'll
obtain 

One $1 $1

i.e., the replace will fail on both duplicated words.

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

[Bug 119437] Inconsistency with RegExp and references

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

Regina Henschel <rb...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jes@martnet.com

--- Comment #4 from Regina Henschel <rb...@t-online.de> ---
*** Bug 120118 has been marked as a duplicate of this bug. ***

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

[Bug 119437] Inconsistency with RegExp and references

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

Marcus <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

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

[Bug 119437] Inconsistency with RegExp and references

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

rgb <rg...@apache.org> changed:

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

--- Comment #2 from rgb <rg...@apache.org> ---
(In reply to comment #1)
> I could confirm them on AOO 3.4.0. But it seems they work well on rev
> 1341841. 
> Maybe supporting group-reference introduced by hdu include fixes such
> problem: 
> https://issues.apache.org/ooo/show_bug.cgi?id=118925#c4
> Please try on recent snapshot:
> http://ci.apache.org/projects/openoffice/install/

Just downloaded the snapshot and you are right, no problems with that build.
Thanks!

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

[Bug 119437] Inconsistency with RegExp and references

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

hanya <ha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hanya.runo@gmail.com

--- Comment #1 from hanya <ha...@gmail.com> ---
I could confirm them on AOO 3.4.0. But it seems they work well on rev 1341841. 
Maybe supporting group-reference introduced by hdu include fixes such problem: 
https://issues.apache.org/ooo/show_bug.cgi?id=118925#c4
Please try on recent snapshot:
http://ci.apache.org/projects/openoffice/install/

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

[Bug 119437] Inconsistency with RegExp and references

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

Marcus <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |IRREPRODUCIBLE

--- Comment #3 from Marcus <ma...@apache.org> ---
closing due to previous comment

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