/[emacs]/emacs/man/search.texi
ViewVC logotype

Diff of /emacs/man/search.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by rms, Sun Nov 11 20:08:57 2001 UTC revision 1.31 by rms, Thu Mar 21 09:37:22 2002 UTC
# Line 463  the text @samp{abbb}, @samp{ab*} will ma Line 463  the text @samp{abbb}, @samp{ab*} will ma
463  match), while @samp{ab*?}  will match just @samp{a} (the shortest  match), while @samp{ab*?}  will match just @samp{a} (the shortest
464  valid match).  valid match).
465    
466    Non-greedy operators match the shortest possible string starting at a
467    given starting point; in a forward search, though, the earliest
468    possible starting point for match is always the one chosen.  Thus, if
469    you search for @samp{a.*?$} against the text @samp{abbab} followed by
470    a newline, it matches the whole string.  Since it @emph{can} match
471    starting at the first @samp{a}, it does.
472    
473  @item \@{@var{n}\@}  @item \@{@var{n}\@}
474  is a postfix operator that specifies repetition @var{n} times---that  is a postfix operator that specifies repetition @var{n} times---that
475  is, the preceding regular expression must match exactly @var{n} times  is, the preceding regular expression must match exactly @var{n} times

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26