Mercurial > emacs
changeset 49959:264cc4bc5c57
Clarify about POSIX functions and non-greedy repetition operators.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Feb 2003 16:47:27 +0000 |
parents | 4b86a185b11d |
children | 10a8aba3dfc7 |
files | lispref/searching.texi |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/searching.texi Mon Feb 24 16:45:47 2003 +0000 +++ b/lispref/searching.texi Mon Feb 24 16:47:27 2003 +0000 @@ -483,9 +483,9 @@ surrounding @samp{\( @dots{} \)} grouping can limit the grouping power of @samp{\|}.@refill -Full backtracking capability exists to handle multiple uses of -@samp{\|}, if you use the POSIX regular expression functions -(@pxref{POSIX Regexps}). +If you need full backtracking capability to handle multiple uses of +@samp{\|}, use the POSIX regular expression functions (@pxref{POSIX +Regexps}). @item \@{@var{m}\@} is a postfix operator that repeats the previous pattern exactly @var{m} @@ -959,6 +959,10 @@ match, as required by POSIX. This is much slower, so use these functions only when you really need the longest match. + The POSIX search and match functions do not properly support the +non-greedy repetition operators. This is because POSIX backtracking +conflicts with the semantics of non-greedy repetition. + @defun posix-search-forward regexp &optional limit noerror repeat This is like @code{re-search-forward} except that it performs the full backtracking specified by the POSIX standard for regular expression