Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34762

Re: Using regexes versus "in" membership test?

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 <rosuav@gmail.com>
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 <d685de14-5cd2-432e-a236-69daa5358f44@googlegroups.com>
References <56f4fbf5-36e6-40d0-b832-e29f8a67190b@googlegroups.com> <50c92acd$0$29972$c3e8da3$5496439d@news.astraweb.com> <a56c17dc-271e-44c7-bc3f-246366383817@googlegroups.com> <mailman.822.1355379600.29569.python-list@python.org> <d685de14-5cd2-432e-a236-69daa5358f44@googlegroups.com>
Date Thu, 13 Dec 2012 17:38:44 +1100
Subject Re: Using regexes versus "in" membership test?
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.824.1355380727.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, Dec 13, 2012 at 5:35 PM, Victor Hooi <victorhooi@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using regexes versus "in" membership test? Victor Hooi <victorhooi@gmail.com> - 2012-12-12 14:35 -0800
  Re: Using regexes versus "in" membership test? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-13 01:09 +0000
    Re: Using regexes versus "in" membership test? Victor Hooi <victorhooi@gmail.com> - 2012-12-12 22:10 -0800
      Re: Using regexes versus "in" membership test? Chris Angelico <rosuav@gmail.com> - 2012-12-13 17:19 +1100
        Re: Using regexes versus "in" membership test? Victor Hooi <victorhooi@gmail.com> - 2012-12-12 22:35 -0800
          Re: Using regexes versus "in" membership test? Chris Angelico <rosuav@gmail.com> - 2012-12-13 17:38 +1100
        Re: Using regexes versus "in" membership test? Victor Hooi <victorhooi@gmail.com> - 2012-12-12 22:35 -0800

csiph-web