[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is wrong with this regexp search?
From: |
rgb |
Subject: |
Re: What is wrong with this regexp search? |
Date: |
10 Nov 2006 08:46:08 -0800 |
User-agent: |
G2/1.0 |
> The problem is that re-search-forward seems to capture the very next
> character, irrespective whether the following one is uppercase or
> lowercase.
case-fold-search is probably non-nil
Put a let someplace around your search.
Then it doesn't matter if it's on or off.
(let (case-fold-search)(re-search-forward "[a-z][A-Z]"))