$1 etc. do not work in Replace of Find & Replace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenOffice |
Invalid
|
Undecided
|
Unassigned | ||
libreoffice (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
openoffice.org (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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/
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: openoffice.org
Uname: Linux 2.6.31-12-generic x86_64
tags: | added: karmic |
Changed in openoffice.org (Ubuntu): | |
status: | Confirmed → Won't Fix |
Just to be sure, did you check off "Regular expression" under the More Options pane?