Saturday, January 30, 2010

Re: SAR Limitation

On Wed, Jan 27, 2010 at 06:30:04AM -0800, Ben Fritz wrote:
>If you actually need to capture more than 9 groups, then no, it can't
>be done. You might be able to get around it with a nested substitute:
>
>:s/pattern1/\=substitute(submatch
>(1,2,3,...,9),'pattern2','replace','')/
>
>Your replace pattern can be built with submatch strings as well as \1
>through \9.

Looks too complicated already! I'll soldier on :)

--

.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment