Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.057 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; '(it': 0.09; 'underlying': 0.09; 'algorithm': 0.13; 'example.': 0.18; 'expansion': 0.18; 'header:In-Reply-To:1': 0.22; 'subject:group': 0.23; 'subject: : ': 0.25; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.28; 'alternatives': 0.29; 'feature,': 0.30; 'subject:skip:i 10': 0.30; 'thanks': 0.31; "didn't": 0.31; 'hi,': 0.32; 'list': 0.32; 'url:listinfo': 0.32; 'received:209.85.161.46': 0.32; 'received :mail-fx0-f46.google.com': 0.32; 'to:addr:python-list': 0.34; 'keys': 0.34; 'url:python': 0.36; 'received:209.85.161': 0.36; 'but': 0.37; 'reference': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'hoping': 0.38; 'received:209.85': 0.38; 'url:org': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'offers': 0.61; 'candide': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EmNYg0HOjZbJggHebKOceOsgxnQiiWm0/HAArm53dts=; b=W0q85Ubc7jhcl3jQmDDt/omMGKUlvbt6Yny1XO81t6jBuoGl954kmvGn+m5wH1dh6Z CKWd5Sis7E6SwLmbw8EYD2VW3jCY719DWR0S3MS4u69QLX0Ebd+mQk40Yx5BBj70xnGJ I+0n7wOj0yWEUnNMDZCmC+EXBVKw8LRhR5XXc= MIME-Version: 1.0 In-Reply-To: <4ee89d3d$0$7725$426a74cc@news.free.fr> References: <4ee88488$0$27871$426a74cc@news.free.fr> <4ee89d3d$0$7725$426a74cc@news.free.fr> Date: Wed, 14 Dec 2011 14:38:36 +0100 Subject: Re: Regexp : repeated group identification From: Vlastimil Brom To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323869918 news.xs4all.nl 6863 [2001:888:2000:d::a6]:54310 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17215 2011/12/14 candide : ... > > Thanks for the reference and the example. I didn't know of this > reimplementation, hoping it offers the Aho-Corasick algorithm allowing > multiple keys search. > -- > http://mail.python.org/mailman/listinfo/python-list Hi, I am not sure about the underlying algorithm (it could as well be an internal expansion of the alternatives like ...|...|...), but you can use a list (set, actually) of alternatives to search for. check the "named lists" feature, \L<...> hth, vbr