From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: search for any two consecutive uppercase characters Date: Thu, 13 Aug 2009 13:23:24 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4a84058c$0$303$14726298@news.sunsite.dk> References: <87fxbw3bfh.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1250167300 20116 80.91.229.12 (13 Aug 2009 12:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 12:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 13 14:41:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MbZcZ-0007Xn-9s for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2009 14:41:31 +0200 Original-Received: from localhost ([127.0.0.1]:55790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbZcW-0001vR-2H for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2009 08:41:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87fxbw3bfh.fsf@galatea.local> Original-Lines: 31 Original-NNTP-Posting-Host: 62.56.63.167 Original-X-Trace: news.sunsite.dk DXC=Z8HMEIDHDSoLZ59a5JC@C8PYD?YX6D Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:171944 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67120 Archived-At: Pascal J. Bourguignon wrote: > Horacio Suarez writes: > >> Hello all: >> >> Is there a way to search for any two consecutive uppercase characters? In example "PÉREZ" or >> "GONZÁLEZ" > > Yes, this is difficult, because of the accented letters. There is no > [:upper:] in emacs regular expressions. It might be possible to build > a syntax table or something to identify uppercase letters including > accented ones, but AFAIK, there's nothing built in. The simpliest > would be to prepare a regular expression explicitely listing all the > characters you'd want, something like: > > "\\<[A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ]+\\>" > Isn't C-u C-s (aka isearch-forward-regexp) [A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ]\{2,\} better? here \{2,\} means two (or more) of the preceding expression. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.