From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: doitian Newsgroups: gmane.emacs.help Subject: Re: search for any two consecutive uppercase characters Date: Thu, 13 Aug 2009 20:50:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87fxbw3bfh.fsf@galatea.local> <9bf1bce2-64af-4e92-8dd6-8d29c79947cd@v36g2000yqv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250225233 14998 80.91.229.12 (14 Aug 2009 04:47:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 04:47:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 06:47:01 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 1Mbogs-0006cg-7A for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 06:46:58 +0200 Original-Received: from localhost ([127.0.0.1]:41150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbogr-0002RT-GW for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 00:46:57 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!y10g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 58.33.60.248 Original-X-Trace: posting.google.com 1250221808 21557 127.0.0.1 (14 Aug 2009 03:50:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 14 Aug 2009 03:50:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y10g2000prg.googlegroups.com; posting-host=58.33.60.248; posting-account=hyD-pQoAAADUIC0gw_ACC-CR7Zb105Dc User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2 AutoPager/0.5.2.2 (http://www.teesoft.info/),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171964 X-Mailman-Approved-At: Fri, 14 Aug 2009 00:42:54 -0400 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:67141 Archived-At: On Aug 13, 7:11=A0am, "A.Politz" wrote: > On Aug 13, 12:38=A0am, p...@informatimago.com (Pascal J. Bourguignon) > wrote: > > >=A0There is no > > [:upper:] in emacs regular expressions. > > That' actually not true, as described here > (info "(elisp)Char Classes") > > -ap Yes, [:upper:] is available. A common error is using it directly. Indeed, it must be put in a char class like [[:upper:]]. The problem can be solved using query-replace-regexp Search Pattern: \<[[:upper:]]\{2,\}\> Replace: \,(capitalize \&)