From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: Regex is not being as "hungry" as it is supposed to Date: Fri, 6 Aug 2010 17:44:59 -0700 Message-ID: References: <4C5BABD1.2090405@easy-emacs.de> <877hk4qlq2.fsf@member.fsf.org> <4C5BBB6E.7020801@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281141952 30911 80.91.229.12 (7 Aug 2010 00:45:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Aug 2010 00:45:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 07 02:45:50 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 1OhXXp-0001xg-Gw for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Aug 2010 02:45:49 +0200 Original-Received: from localhost ([127.0.0.1]:43636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhXXp-0000gK-2h for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 20:45:49 -0400 Original-Received: from [140.186.70.92] (port=41576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhXXO-0000gE-RI for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 20:45:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhXXN-0004Hx-2b for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 20:45:22 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:54735) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhXXM-0004HW-U5 for help-gnu-emacs@gnu.org; Fri, 06 Aug 2010 20:45:21 -0400 Original-Received: by wyg36 with SMTP id 36so9405755wyg.0 for ; Fri, 06 Aug 2010 17:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=RgMcclcQpaz7ezaH1qo3t9mKGxKcf44khyJiEGE05T4=; b=mXyww5N5bXvk70GRSXMt4+hNtGDg6YM6qIWQz5J3TuDnNWVfeY+xxp8H8uUA9v4jMp igLmrDx4Y6wZ5yFWapi0SjqDXVtznqN41a7isw/LyVlYihgOo9HY2h2yrw8+hzN80WLE TdtdnieYt1r8yi6ZAfJaAN0l3v47tmkdjNj+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=sGL1BRzPjViD4TNqbaT3EmLmJ1fRgvUvZpZdv8A7i4IUElrrfw1CEkrC8SqZayGPnp id4rYwii6vIu+VGxNeefOlAhFCK5nsvsF4BqINUFmBd7kff9Anj3j/e2S4WStLU8dogO CrTZLYoiHd5LYnTql7XpqJbJ04K8tXTNh5MZM= Original-Received: by 10.216.30.207 with SMTP id k57mr11250627wea.88.1281141919199; Fri, 06 Aug 2010 17:45:19 -0700 (PDT) Original-Received: by 10.216.234.154 with HTTP; Fri, 6 Aug 2010 17:44:59 -0700 (PDT) In-Reply-To: <4C5BBB6E.7020801@easy-emacs.de> X-Google-Sender-Auth: kDC7hJg5C9LvUUKv8eX-175pxM4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74490 Archived-At: On 6 August 2010 00:36, Andreas R=F6hler wr= ote: > > BTW, as running into difficulties with regexps is common: > quite often helps ancoring it > > ^\(.+ \)[0-9]+ =3D > > \1 > > circumvents the bug > Thank you for this suggestion! :) Whenever working with sed I usually do that. I guess its good practice when using regexps interactively in emacs too. --=20 Suvayu Open source is the future. It sets us free.