Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.093 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.01; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'string': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'language.': 0.14; 'books': 0.15; 'meanwhile': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'people,': 0.24; 'gets': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'regular': 0.32; 'maybe': 0.34; 'johnson': 0.35; "i'll": 0.36; 'subject:?': 0.36; 'too': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'even': 0.60; 'full': 0.61; 'completed': 0.61; 'free,': 0.61; 'simple': 0.61; 'reach': 0.63; 'such': 0.63; 'myself': 0.63; 'our': 0.64; 'pick': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; 'jobs': 0.68; 'lose': 0.68; 'wish': 0.70; 'online': 0.71; 'blown': 0.84; 'hydrogen': 0.84; 'manual,': 0.84; 'parser,': 0.84; 'novice': 0.91; 'rick': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python 3 regex? Date: Tue, 13 Jan 2015 01:54:55 +0000 References: <54B40C85.5000806@emerytelcom.com> <4043d09b-05b2-4dc2-8a6b-bae2d53cd01f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-222-48.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <4043d09b-05b2-4dc2-8a6b-bae2d53cd01f@googlegroups.com> 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421114112 news.xs4all.nl 2934 [2001:888:2000:d::a6]:35928 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83650 On 12/01/2015 23:47, Rick Johnson wrote: >> 'Some people, when confronted with a problem, think "I >> know, I'll use regular expressions." Now they have two >> problems.' - Jamie Zawinski. > [normal cobblers snipped] If you wish to use a hydrogen bomb instead of a tooth pick feel free, I won't lose any sleep over it. Meanwhile I'll get on with writing code, and for the simple jobs that can be completed with string methods I'll carry on using them. When that gets too complicated I'll reach for the regex manual, knowing full well that there's enough data in books and online to help even a novice such as myself get over all the hurdles. If that isn't good enough then maybe a full blown parser, such as the pile listed here http://nedbatchelder.com/text/python-parsers.html ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence