Tuesday, October 30, 2012

backward reference

Hi,

I am using this kind of code in order to modify line content :

let patternOfxembh='^.*one="\(\d\+\)".*two="\(\d\+\)"'
if line =~ patternOfxembh
echo line
endif

The recognition is working well and then I can echo my line but is it possible to do an echo of backward reference: value of \(\d\+\).

I would like to avoid to use substitute and using again the same pattern on the line.

Thank you

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment