[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/search.texi
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/man/search.texi |
Date: |
Thu, 21 Mar 2002 04:37:22 -0500 |
Index: emacs/man/search.texi
diff -c emacs/man/search.texi:1.30 emacs/man/search.texi:1.31
*** emacs/man/search.texi:1.30 Sun Nov 11 15:08:57 2001
--- emacs/man/search.texi Thu Mar 21 04:37:22 2002
***************
*** 463,468 ****
--- 463,475 ----
match), while @samp{ab*?} will match just @samp{a} (the shortest
valid match).
+ Non-greedy operators match the shortest possible string starting at a
+ given starting point; in a forward search, though, the earliest
+ possible starting point for match is always the one chosen. Thus, if
+ you search for @samp{a.*?$} against the text @samp{abbab} followed by
+ a newline, it matches the whole string. Since it @emph{can} match
+ starting at the first @samp{a}, it does.
+
@item address@hidden@address@hidden
is a postfix operator that specifies repetition @var{n} times---that
is, the preceding regular expression must match exactly @var{n} times
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/man/search.texi,
Richard M. Stallman <=