Issue 101068

Summary: S&R: backref to [:cntrl:] in replace expr. isn't parsed
Product: Writer Reporter: awagner_mainz <andreas.wagner>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 3.0.1Keywords: oooqa
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

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
refer.

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?