From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Regexp issue Date: Sat, 20 Jun 2009 10:17:38 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <1245487152.15610.0.camel@drserver> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245494518 5846 80.91.229.12 (20 Jun 2009 10:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2009 10:41:58 +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 Jun 20 12:41:56 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 1MHy1E-0004nd-9w for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 12:41:56 +0200 Original-Received: from localhost ([127.0.0.1]:47800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHy1D-0001yA-FQ for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 06:41:55 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.telusplanet.net!newsfeed.telus.net!feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.tu-darmstadt.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1245493058 23086 2001:608:1000::2 (20 Jun 2009 10:17:38 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Sat, 20 Jun 2009 10:17:38 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: news.stanford.edu gnu.emacs.help:170180 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:65400 Archived-At: Peter Dyballa wrote: > Am 20.06.2009 um 10:39 schrieb Paulo J. Matos: >> How can I match the string => but not part of <=>? > [^<]=> > [everything but "<"]"> Or, more precisely, \(^\|[^<]\)=> , i.e. [nothing at all] or [something which isn't "<"] following by =>. If you're using this in a string in a lisp program, you'll have to double up the backquotes, something like (search-forward-regexp "\\(^\\|[^<]\\)=>") > -- > Greetings > Pete -- Alan Mackenzie (Nuernberg).