@end example
@end deffn
+@c This anchor is referenced by re-search-backward's docstring.
+@anchor{re-search-backward}
@deffn Command re-search-backward regexp &optional limit noerror count
This function searches backward in the current buffer for a string of
text that is matched by the regular expression @var{regexp}, leaving
This function is almost identical to `re-search-forward', except that
by default it searches backward instead of forward, and the sign of
COUNT also indicates exactly the opposite searching direction.
+See `re-search-forward' for details.
-See `re-search-forward' for details. */)
+Note that searching backwards may give a shorter match than expected,
+because REGEXP is still matched in the forward direction. See Info
+anchor `(elisp) re-search-backward' for details. */)
(Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
{
return search_command (regexp, bound, noerror, count, -1, 1, 0);