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

Re: regexp for excluding a word from all valid identifiers

Expand Messages
  • Jürgen Krämer
    Hi, ... use negative look-ahead: Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the
    Message 1 of 2 , Sep 28, 2007
      Hi,

      Normandie Azucena wrote:
      >
      > This is a dumb question but using regexp how can I exclude a word from a
      > super set of all valid words i.e \w*?
      >
      > ex
      >
      > search for all valid words (\w*) except "input"

      use negative look-ahead:

      \<\(input\)\@!\w+\>

      Regards,
      Jürgen

      --
      Sometimes I think the surest sign that intelligent life exists elsewhere
      in the universe is that none of it has tried to contact us. (Calvin)

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