[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp case sensitivity bug
From: |
Richard Stallman |
Subject: |
Re: regexp case sensitivity bug |
Date: |
Tue, 10 Dec 2002 16:30:32 -0500 |
Or we can use a completely different approach:
(defun isearch-no-upper-case-p (string regexp-flag)
"..."
(let ((case-fold-search nil))
(save-match-data
(null (string-match
(if regexp-flag "\\(^\\|[^\\]\\)[[:upper:]]" "[[:upper:]]")
string)))))
That's not correct in the case where there are two \'s in a row
(or any even number).