From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rasmith@tamu.edu Newsgroups: gmane.emacs.help Subject: Re: Regex to match "define ABC-123-xyz" Date: Fri, 01 Oct 2010 10:23:59 -0500 (CDT) Message-ID: <20101001.102359.694015950198022743.rasmith@aristotle.tamu.edu> References: Reply-To: rasmith@tamu.edu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285946673 4980 80.91.229.12 (1 Oct 2010 15:24:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 15:24:33 +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 Oct 01 17:24:32 2010 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.69) (envelope-from ) id 1P1hTJ-0007Tz-IE for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 17:24:29 +0200 Original-Received: from localhost ([127.0.0.1]:33999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1hTI-0005bz-Uu for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 11:24:29 -0400 Original-Received: from [140.186.70.92] (port=43422 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1hSt-0005Zu-CN for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 11:24:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1hSs-0004IN-9S for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 11:24:03 -0400 Original-Received: from aristotle.tamu.edu ([128.194.75.5]:53933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1hSs-0004H0-5X for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 11:24:02 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by aristotle.tamu.edu (Postfix) with ESMTP id 4AA16E0469 for ; Fri, 1 Oct 2010 10:23:59 -0500 (CDT) In-Reply-To: X-Mailer: Mew version 6.3 on Emacs 23.2 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:75058 Archived-At: From: Gary Subject: Re: Regex to match "define ABC-123-xyz" Date: Fri, 01 Oct 2010 15:45:04 +0200 > It now works okay in the RE-Builder for me too, but not in the mode I > have written. I imagine the REs for different parts of the language are > getting in the way of each other somewhere. I will try removing some > until I get something that works and go on from there... > My guess is that there's some problem with escaping special characters in the context in which you're using it. As an example of what I mean, you're probably aware that in query-replace-regexp, you need to enter "(" and ")"as "\(" and "\)" if they're intended as regexp subexpression delimiters rather than literal parentheses. So, where are you using it?