From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: Do POSIX classes work in regular expression searches? Date: Fri, 22 Jul 2011 19:24:30 -0500 Message-ID: <9B0A08E4-8570-4BFA-A273-12CEEE7FBDE4@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311380688 27365 80.91.229.12 (23 Jul 2011 00:24:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2011 00:24:48 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: throaway@yahoo.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 02:24:44 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 1QkQ1L-0000x0-QD for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 02:24:43 +0200 Original-Received: from localhost ([::1]:52620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkQ1I-00064y-8k for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jul 2011 20:24:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkQ1D-00063S-MU for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 20:24:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkQ1C-0003c0-L2 for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 20:24:35 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:49441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkQ1C-0003bw-Hs for help-gnu-emacs@gnu.org; Fri, 22 Jul 2011 20:24:34 -0400 Original-Received: by iyb14 with SMTP id 14so2861562iyb.0 for ; Fri, 22 Jul 2011 17:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=10tP8UvinagN7NQpyIjfGnPNvsQRpQQCT1v/zjlH/c4=; b=KFT7TnCa3ka/O4ggqd59b/qRQP9+W2AliiYe3XKyaE+1C9kp6Da3uYl19w4Y7LTQGX 3chyhjcM576+lhmIY3iD41TMopg7H1naJSYWlhShFt3irCZR70KGOukjnkG3LNoo3qCI owoUZkGfX/3EGdjbVv5rft6hles8v1X9TA3fU= Original-Received: by 10.231.42.155 with SMTP id s27mr1812053ibe.68.1311380673726; Fri, 22 Jul 2011 17:24:33 -0700 (PDT) Original-Received: from [10.0.0.4] ([64.128.19.234]) by mx.google.com with ESMTPS id q4sm1859570ibb.15.2011.07.22.17.24.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jul 2011 17:24:32 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:81742 Archived-At: On Jul 22, 2011, at 8:12 PM, Mark S wrote: >=20 > I've been trying to do some simple searches like: >=20 > (query-replace-regexp "+" "test") >=20 >=20 > or even the simpler >=20 > (query-replace-regexp "[:ascii:]*" "test") >=20 > 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:]]*