From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Help with regexp Date: Wed, 2 Dec 2009 06:16:26 +0100 Message-ID: <20091202051626.GA19970@tomas> References: <87y6lmtnbx.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259731394 24784 80.91.229.12 (2 Dec 2009 05:23:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 05:23:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 02 06:23:08 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 1NFhgA-00077K-Bn for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 06:23:06 +0100 Original-Received: from localhost ([127.0.0.1]:48871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFhg9-0002MG-V3 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 00:23:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFhfo-0002M0-5Q for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 00:22:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFhfj-0002JZ-Ir for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 00:22:43 -0500 Original-Received: from [199.232.76.173] (port=47747 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFhfj-0002JV-Bc for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 00:22:39 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:56297 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFhfj-0001Bt-1z for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 00:22:39 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 6D26190049; Wed, 2 Dec 2009 06:16:26 +0100 (CET) Content-Disposition: inline In-Reply-To: <87y6lmtnbx.fsf@galatea.local> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.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:70298 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Dec 01, 2009 at 10:07:46PM +0100, Pascal J. Bourguignon wrote: > Xavier Maillard writes: >=20 > > Hi, > > > > I am trying to find the regexp that could match on these: > > > > "=3D>foo" [...] > "=3D>\\([^:]*\\(\\|:[^:]*\\(\\|:[^:]*\\)\\)\\)" Wow, Pascal. You have taught this old dog a new trick. Up to now, I hadn't thought of putting an alternative (i.e. "|") at the start of a parenthesized sub-expression. Thanks :-) - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLFfgqBcgs9XrR2kYRArCSAJsF/cNzBW4JxbFhy9RVXchyu0wIdwCfVN48 tHvpGkOyBF8b1HjeOvTXM2Q=3D =3DRIly -----END PGP SIGNATURE-----