On Fri 16-Feb-07 6:32am -0600, Bin Chen wrote: > Suppose a line > > MopqMopc > > ^.*M match the line from beginning to the second M, but I want to match > the beginning to the first M, how can I do it?
I see you already have good answers from Tim and Alexey. To
avoid surprises when ignorecase and nosmartcase are set,
make sure the search is case sensitive with \C - such as:
^.{-}M\C
or
^[^M]*M\C
--
Best regards,
Bill
