Saturday, August 6, 2011

How to match a certain string after an empty line?

Hi,

A listing of files with absoulte paths contains somthing like this

01 /home/user1/foo
02 /home/user1/bar
03 /home/user1/gnu
04 /home/user2/alice
05 /home/user1/gnats
06 /home/user2/alice
07
08 /home/user2/alice
09 /home/user1/bob
10 /home/user1/snafu
11 /home/user2/alice

(line numbers are only for reference in this
mail and not really part of the text/file!)

I want to match line 08 only. Or in other
words, I want to match
^$/home/user2/alice

Unfortunately the search pattern doesnt work
here.

How can I acchieve the correct pattern match?

Thank you very much in advance!
Best regards and have a nice sunday!
mcc


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