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

105481Re: how to match the space Not begin from the start-of-line

Expand Messages
  • ginkgo
    Jul 1, 2009
    • 0 Attachment
      On Jul 1, 5:52 pm, Tim Chase <v...@...> wrote:
      > >   I want to know how to match the space that is not in the start of
      > > the line.
      >
      > > for example
      > >     sss sss
      > > ^^^^   ^
      > > I just match the second part of the sample.
      >
      > You want the "\@<!" modifier:
      >
      >    \%(^\s*\)\@<!\s
      >
      > which "Matches with zero width if the preceding atom does NOT
      > match just before what follows." as detailed at
      >
      >    :help /\@<!
      >
      > In this case, the preceding atom is
      >
      >    \%(^\s*\)
      >
      > or "whitespace at the beginning of the line".
      >
      > -tim

      thanks Tim , I think your atom work well. I know the \@<! , but I use
      the \%(^\s\+\)\@<!\s ,
      can you tell me, why the \s\+ not work well, but the \s* work well

      regard
      ginkgo
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 7 messages in this topic