Sunday, January 13, 2013

Re: Use registers in search and replace?

On Jan 13, 9:30 am, stosss <sto...@gmail.com> wrote:
> <a href="filenames1.html">Filenames 1</a>
>
> I need to be able to use visual mode to grab only the letters
> and not the numbers. File names can be from four letters and
> one number to 13 letters and 3 numbers. That makes doing this

not sure what result you want
the following search replace will extract the filename
given your specifications

:s#<a href="\(\w\{4,13}\)\d\{1,3}\.html">.*#\1#c

Bill

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