Friday, October 26, 2012

Re: Need help to remove multiple copies of text

On Thursday, 25 October, 2012 at 02:39:15 BST, Dan Thurman wrote:
>:1,$ s~<text:alphabetical-index-mark .*/>~~g
>
>but the problem is with ".*", of which the search
>pattern takes out everything to very the last "/>"
>pattern found which is not what I want.

Make it non-greedy:

:%s~<text:alphabetical-index-mark .\{-}/>~~g

--

.

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