help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About regexp


From: xfq
Subject: Re: About regexp
Date: Mon, 26 Nov 2012 15:50:48 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 11/25/2012 11:41 PM, Drew Adams wrote:
The default value of the variable `sentence-end-base' is:
[.?!][]\"'")}]*
There is a backslash in the second part of the regexp, why?

C-h v sentence-end-base tells you:

  sentence-end-base is a variable defined in `paragraphs.el'.
  Its value is "[.?!][]\"'")}]*"

IOW, the value is a string.  The double-quote chars shown surrounding the string
are not characters in the string.  The double-quote char shown just before the
single-quote char, ', is in the string.  When printed, that char is escaped with
a backslash.  The char in the string following the ' char is a different char (a
curly quote) - it is not used to indicate the string limits, so it need not be
escaped to distinguish it.

Thx.  BTW, I like your bookark+/ediff+/Icicles/lacarte very much.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]