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

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

regexp for 'sentence-end'??


From: gebser
Subject: regexp for 'sentence-end'??
Date: Mon, 17 Feb 2003 07:26:02 -0500 (EST)

Hello, 

The standard end-of-sentence variable is defined as:

(defcustom sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\|  \\)[ 
\t\n]*")

(sorry for the wrap).  Because I do considerable editing of html and
similar types of files, I wanted to add to this definition character
sequences which have [.?!] followed by either a "<" or ">" and thought
that

(defcustom sentence-end (purecopy "[.?!][]\<>\"')}]*\\($\\| $\\|\t\\|  
\\)[ \t\n]*")

(sorry again) would do this.  After trying this however, it detects both
"'>'" and "e.</p>" as sentence-end (which it shouldn't do, right?)  but
not "e." immediately before "<" (which it should, yes?).

What's the proper syntax?

tia,
ken






reply via email to

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