Sunday, December 20, 2020

Matching a non-match

Hi all,

Browsing a directory listing, sometimes I hit lines like these:
./spool/exim/input/1FM8sl-00004n-Ix-H
./spool/exim/input/1FM8sn-00004u-OF-D
./spool/exim/input/1E9dsQ-00004f-MO-D
[... thousands of similar lines ...]

How can I use "/" to find the next line not matching the above
pattern? I've tried the following (and several variations):
/\(.*exim.input\)\@<!.*

Regards,
Albert Wik.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALPW7mTGyksn-tcK2zR-%3DjNcWv3rLVXBJrO2hLhgsHu4jX4Z6w%40mail.gmail.com.

No comments: