Sunday, May 30, 2010

Re: Regex matching the first occurrence of a string

On May 30, 10:02 pm, Ben Fritz <fritzophre...@gmail.com> wrote:
>
> So, your final command would be:
>
> :%s/Begin\_.*\(End\)\{-1}/This was one block/c

Oops,

:%s/Begin\_.\{-}\(End\)\{-1}/This was one block/c

--
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: