Loading ...
Sorry, an error occurred while loading the content.

Re: How to match string that does not start with something?

Expand Messages
  • Tim Chase
    ... /- @ The @
    Message 1 of 2 , Jun 29, 2008
    • 0 Attachment
      > I'm looking for a string \<n\>. But I don't want the case where '-' is
      > right before it. How should be the correct regex?


      The "\@<!" prevents the previous atom from matching. If it was
      more than one "-" character, you'd have to wrap it in "\(...\)"
      to prevent the whole thing from preceding the following expression.


      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.