From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: regexp/emacs selective replace Date: 25 Nov 2009 12:44:25 GMT Message-ID: References: <26478209.post@talk.nabble.com> <87skc3kokg.fsf@ergodik.univ-brest.fr> <87ws1ewzl0.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259157345 2274 80.91.229.12 (25 Nov 2009 13:55:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 13:55:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 14:55:38 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 1NDILJ-0001xt-Vy for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 14:55:38 +0100 Original-Received: from localhost ([127.0.0.1]:43633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDILJ-0005KX-KI for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 08:55:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: individual.net /cqKH3PR5DiiZ79W1vVtdA0qmPjR0hCBA04u4d7E4HkItPGUOt Cancel-Lock: sha1:Kx+RlDi4so84Sk2YM1uNnIsvrcE= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.9p1 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:175046 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:70120 Archived-At: harven wrote: > Joost Kremers writes: > >> note that {[^}]*} could also have been written as {.*?} (which IHMO is a bit >> clearer and easier to read). > > strictly speaking {[^}]*} is not the same as {.*?} when it comes to regexps, all that counts is "strictly speaking". ;-) > The first will match > > {xxx > } > > because emacs regexp [^...] matches newline if it is not included in the > brackets. yup, true. forgot about that... -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)