On 11/25/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>  %s/tv\[/tv_/g
>  replaces he first but how to distinguish the second from other
>  similar cases.

%s/tv\[\(\d\+\)\]/tv_\1/

-- 
http://slobin.pp.ru/ `When I use a word,' Humpty Dumpty said,
<[EMAIL PROTECTED]> `it means just what I choose it to mean'

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

Reply via email to