# HG changeset patch # User Luc Teirlinck # Date 1090003039 0 # Node ID 7cc505680b750f0fdcdb2e6cf027c39b9263a657 # Parent 12c8e3bc7304fdab22e62259d86c777e4505a837 (Regexp Backslash): Document new \_< and \_> operators. From Jim Blandy. diff -r 12c8e3bc7304 -r 7cc505680b75 lispref/searching.texi --- a/lispref/searching.texi Fri Jul 16 16:05:28 2004 +0000 +++ b/lispref/searching.texi Fri Jul 16 18:37:19 2004 +0000 @@ -666,6 +666,19 @@ matches the empty string, but only at the end of a word. @samp{\>} matches at the end of the buffer (or string) only if the contents end with a word-constituent character. + +@item \_< +@cindex @samp{\_<} in regexp +matches the empty string, but only at the beginning of a symbol. A +symbol is a sequence of one or more word or symbol constituent +characters. @samp{\_<} matches at the beginning of the buffer (or +string) only if a symbol-constituent character follows. + +@item \_> +@cindex @samp{\_>} in regexp +matches the empty string, but only at the end of a symbol. @samp{\_>} +matches at the end of the buffer (or string) only if the contents end +with a symbol-constituent character. @end table @kindex invalid-regexp