Public bug reported:

Binary package hint: openoffice.org

In Find & Replace, the use of (...) in the Find expression is supposed
to create a reference which can be used in the Replace expression via $1
($2 for the second (...) etc.).   At least that is how I read the OO
docs on Regular Expressions.   It is also how regular expressions work
in many other programs.

However, using $1 in the Replace field just puts in a litera "$1"
instead of substituting the text from the "Search for" expression.

EXAMPLE:
If the text contains "My dog has fleas", then setting the Search expression to 
"My (...) has fleas" and the Replace expression 
to "My $1 is smart" Should change the text to "My dog is smart".   However, the 
result is "My $1 is smart".

ProblemType: Bug
Architecture: amd64
Date: Fri Oct 30 11:44:35 2009
DistroRelease: Ubuntu 9.10
Package: openoffice.org-core 1:3.1.1-4ubuntu2 [modified: 
var/lib/openoffice/basis3.1/program/services.rdb]
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.41-generic
SourcePackage: openoffice.org
Uname: Linux 2.6.31-12-generic x86_64

** Affects: openoffice.org (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
$1 etc. do not work in Replace of Find & Replace
https://bugs.launchpad.net/bugs/465323
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to