Issue 101068 - S&R: backref to [:cntrl:] in replace expr. isn't parsed
Summary: S&R: backref to [:cntrl:] in replace expr. isn't parsed
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.0.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Reported: 2009-04-14 10:20 UTC by awagner_mainz
Modified: 2013-01-29 21:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description awagner_mainz 2009-04-14 10:20:26 UTC
Hi all,

I have a document the author of which has put footnotes before periods, commas
and the like, and I want to swap them. Thus I have a search/replace dialogue
where I search for ([:cntrl:])([.,;:]), and this correctly retrieves all (I
guess) those occurences.
But whatever I enter in the replace field ($2$1, \2\1, $1$0, &2&1, ...) it gets
inserted as plaintext (i.e. "$2$1" etc.), not as the pattern to which it should

Any idea?
Comment 1 eric.savary 2009-04-14 14:53:56 UTC
AFAIK there is no (OOo specific) regexp for fields.

Reassigned to SBA
Comment 2 lohmaier 2010-03-18 23:47:38 UTC
As backreference themselves are a (relatively) new addition to OOo (2.4 :-)) it 
seems to be an oversight in the implementation/an RFE.

backref implementation issue is issue 15666
Comment 3 awagner_mainz 2011-01-03 19:40:08 UTC
I've just checked again: the replace expression $2$1 does what it is supposed to 
do when I'm searching for (.)([,.;:]), but not when searching for ([:cntrl:])
([,.;:]) - in that case, while correctly retrieving and selecting the relevant 
occurences, it replaces them with literal $2$1.
This is OOo330m18 on Linux.

Is getting this STARTED only a matter of the relative position in the pipeline 
amidst other issues or is there anything missing?