I have problems to _use_ matched substrings in replace-mode. For instance given regular expression containing some groups, like '(xxxx)(zzzz)(yyyy)' and I want to change the found value to 'yyyyzzzzxxxx', so in regex I would write '\3\2\1'
Now the selection contains '\3\2\1', this is selected (in lyxfind.cpp:findAdvReplace()) with cap::pasteParagraphList(cur, repl_buffer.paragraphs(), repl_buffer.params().documentClassPtr(), bv->buffer().errorList("Paste")); LYXERR(Debug::FIND, "After pasteParagraphList() cur=" << cur << endl); sel_len = repl_buffer.paragraphs().begin()->size(); and then follows bv->putSelectionAt(DocIterator(cur), sel_len, !opt.forward); bv->processUpdateFlags(Update::Force); How can I modify the data prior to inserting into buffer ? The values of '\1', '\2', '\3' are known here, but are not used. Kornel
pgpa0hgnxFIE_.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel