Apache OpenOffice (AOO) Bugzilla – Issue 101068
S&R: backref to [:cntrl:] in replace expr. isn't parsed
Last modified: 2013-01-29 21:43:56 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?
AFAIK there is no (OOo specific) regexp for fields. Reassigned to SBA
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
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?