Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'lines.': 0.07; 'properly.': 0.07; 'subject:test': 0.07; 'received:mail- vc0-f174.google.com': 0.09; 'dec': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parse,': 0.16; 'subject:versus': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'header:In- Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'post': 0.28; 'received:209.85.220.174': 0.29; 'that.': 0.30; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'subject:" ': 0.36; "didn't": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'more': 0.63; 'subject:Using': 0.84; 'victor': 0.84; 'subject:membership': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dtp5O9UREn7WJniyY5Dq6UdtXSK8gmDNtYwr98ILmX4=; b=WFW+kQ6FnEoKKTEw1d5+U3TjadKT9YX1QAE2iXne7r1fyv84UZi5+v2lGVK0VYQj11 GY27+zbDbJTNGZAZBAphSUn/zKNvFhx66rOS5k5Opi3pXYmtFpEbdPxUbGP4/LSJV35b /i9gB9Vqt2PZ+g4oYiNrC6TPFPMnhibIbUMYsmFh3FD9nejvLmj3Z7YXdZ2DwCy2qsN9 SpqWwNDKkLu6063Nr6egLv2NEXxlEXWq5eyzc6/JcsG6XxexerWYvW0xiu8hfjvjMhdD B5ggKCnt1WgNqPvtUldsdursfJQWzxec1g42vwmwYbQJFYimcA8IVMWMHXglAGHIUJYN ZSeA== MIME-Version: 1.0 In-Reply-To: References: <56f4fbf5-36e6-40d0-b832-e29f8a67190b@googlegroups.com> <50c92acd$0$29972$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 13 Dec 2012 17:38:44 +1100 Subject: Re: Using regexes versus "in" membership test? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355380727 news.xs4all.nl 6867 [2001:888:2000:d::a6]:47567 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34762 On Thu, Dec 13, 2012 at 5:35 PM, Victor Hooi wrote: > Heya, > > See my original first post =): > Oops! Mea culpa. Yes, you did say that. And then definitely, if it's a one-keyword search for each and then the regex to parse, that would be much more efficient than using the regex to pick lines. Sorry! I didn't read it properly. ChrisA