Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!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.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '(at': 0.04; 'expressions': 0.07; 'string': 0.09; 'python': 0.11; ':-)': 0.16; 'wrote:': 0.18; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'fastest': 0.30; 'received:10.0.0': 0.31; 'perl': 0.31; 'regular': 0.32; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'received:10.0': 0.36; 'should': 0.36; 'received:10': 0.37; 'sometimes': 0.38; '8bit%:86': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'everybody': 0.60; 'concept.': 0.84; 'subject:skip:S 10': 0.84; 'choice.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=N+8gAg34kv5mi9M73UmHfLHqwrIG8v1QaOdRe2a6oSk=; b=Mx8pxLcnkvLuv/n8/tWEQqaMqx6+EfDf6h41i0VJgRsWo1AxACNIV3/JBCo0kM8Qpu lEoJQb2f5TzLqCwQtWJStheqh+KPBbCFGswu2UX3hGTy086hPbclp0D4PJNra2nRDLrV ZCNn20W6sRUIwn2K4DBffU1y7wgGx+kMXPp3nSevySHj/w57A5ZQV4PsEWZ5/nntx0QE OIXh8nGifgO4tnPdtuaWKMua+DrvR5Wmqtmm0lnUIkriAiNdIHr2xzENzATa/zCBuOeA WB4m/TNwk4UhrLGd9slmuyL07usPX9wzAezqap/fCwuqrIiQS8+aEK0HVTXXDWP0Sekv NKxA== X-Received: by 10.50.36.100 with SMTP id p4mr14833680igj.30.1374324620791; Sat, 20 Jul 2013 05:50:20 -0700 (PDT) Date: Sat, 20 Jul 2013 08:50:18 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: "python-list@python.org >> Python Mailing List" Subject: Re: Find and Replace Simplification References: <51e967bb$0$29971$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374324623 news.xs4all.nl 15998 [2001:888:2000:d::a6]:53374 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50968 On 07/20/2013 07:48 AM, Serhiy Storchaka wrote: > 19.07.13 21:08, Skip Montanaro написав(ла): >> Serhiy> The string replace() method is fastest (at least in Python >> 3.3+). See >> Serhiy> implementation of html.escape() etc. >> I trust everybody knows by now that when you want to use regular >> expressions you should shell out to Perl for the best performance. :-) > > If you want to use regular expressions Python is not the best choice. > But if you want to use Python regular expressions sometimes are the > best choice. > > That is an interesting concept. (^u^) Mahalo, DCJ