From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mark S" Newsgroups: gmane.emacs.help Subject: Re: Do POSIX classes work in regular expression searches? Date: Fri, 22 Jul 2011 19:19:08 -0800 Organization: None whatsoever Message-ID: Reply-To: throaway@yahoo.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311387717 24860 80.91.229.12 (23 Jul 2011 02:21:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2011 02:21:57 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 04:21:53 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QkRqh-0007w7-GG for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 04:21:51 +0200 Original-Received: from localhost ([::1]:46843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkRqg-0006TA-Uu for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jul 2011 22:21:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkRq0-0004jQ-Fj for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 22:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkRpv-0004S4-Ez for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 22:21:04 -0400 Original-Received: from fed1rmfepo203.cox.net ([68.230.241.148]:54269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkRpv-0004Rs-2A for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 22:21:03 -0400 Original-Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20110723022100.QNSV22406.fed1rmfepo203.cox.net@fed1rmimpo01.cox.net> for ; Fri, 22 Jul 2011 22:21:00 -0400 Original-Received: from hermione2008.sd.cox.net ([174.66.136.230]) by fed1rmimpo01.cox.net with bizsmtp id BELz1h00m4yRyE603ELz8y; Fri, 22 Jul 2011 22:21:00 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.4E2A300C.0008,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=gWJ3tSwlVG9+9Bc0QwsTfgzr7y6rw8iGroUsY2aLSe8= c=1 sm=1 a=2CeqBfwGSwcA:10 a=lPcGHGSf6HwA:10 a=f8_S3n9t2uQA:10 a=md-2Pq3UxAoA:10 a=oJL9TIRMo0YA:10 a=Q9fys5e9bTEA:10 a=jkM6+adfMIE9x4mX0FcOQQ==:17 a=pGLkceISAAAA:8 a=1W6oaQv4jfbOcIkG6o8A:9 a=PUjeQqilurYA:10 a=MSl-tDqOz04A:10 a=jkM6+adfMIE9x4mX0FcOQQ==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none User-Agent: Opera Mail/11.11 (Win32) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 68.230.241.148 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81743 Archived-At: Thanks Perry! I suppose this was obvious to everyone, but I really didn't see it in the documentation -- or even an example of usage. Thanks again! Mark On Jul 22, 4:24 pm, Perry Smith wrote: > On Jul 22, 2011, at 8:12 PM, Mark S wrote: >> I've been trying to do some simple searches like: >> (query-replace-regexp "+" "test") >> or even the simpler >> (query-replace-regexp "[:ascii:]*" "test") >> and not getting anywhere. Emacs just looks for the characters ":acis" > -- not for the POSIX character set of all ASCII characters. Trying it > with other sets also got me nowhere. These character classes are listed > in the Emacs documentation -- is there a trick to getting them to work? >Looks like you need two sets of brackets? >[[:ascii:]]* m/mail/