From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Do POSIX classes work in regular expression searches? Date: Sat, 23 Jul 2011 09:14:45 +0200 Message-ID: <4E2A74E5.9070602@easy-emacs.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1311405297 32420 80.91.229.12 (23 Jul 2011 07:14:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2011 07:14: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 09:14: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 1QkWQG-00080M-JH for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 09:14:53 +0200 Original-Received: from localhost ([::1]:48260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkWQG-00063J-2f for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 03:14:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkWQC-00063C-4l for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 03:14:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkWQA-0000pg-V2 for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 03:14:48 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:60125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkWQA-0000pb-Iw for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 03:14:46 -0400 Original-Received: from [192.168.178.27] (brln-4db9f73c.pool.mediaWays.net [77.185.247.60]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MJHP4-1QhmbH25Gc-002qe1; Sat, 23 Jul 2011 09:14:45 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: X-Provags-ID: V02:K0:WkBmDWnwIXRWuvvp0u4kmFX4YpuQLXprTobh8Snl1T4 D45a8zXogosnYVey0//WUCr8j1NCDZRCkAxH9Bgn9GeW6IHdOY bnnuBq6wjQ2hTByY7WREvbigc62mNdzITp6tuD3QdEKSSTq/5x EeZ4QWBCbpzXmG7Uab3bj1RjMSM3ytIeponV7edzf4jAs4hAqa 5pAw33NzWom12oe/7+coLqhmA9FVBwXk/knW4AOKRw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 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:81748 Archived-At: Am 23.07.2011 05:19, schrieb Mark S: > > 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:]]* > you may understand the inner bracketed-form like an equivalent to "a-zA-Z" you may write for example [[:ascii:]ÄÖÜaöü]* in order to cover german umlauts too