[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))
          (null (string-match 
                  (if regexp-flag "\\(^\\|[^\\]\\)[[:upper:]]" "[[:upper:]]")

That's not correct in the case where there are two \'s in a row
(or any even number).

reply via email to

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