Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; 'syntax': 0.03; 'suppose': 0.07; 'python': 0.09; 'imho.': 0.09; 'subject:ignore': 0.09; ':-)': 0.13; 'between.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'fuzzy': 0.16; 'iteration': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'roy': 0.16; 'stuff.': 0.16; 'subject:case': 0.16; 'url:html)': 0.16; 'wow,': 0.16; 'wrote:': 0.17; 'module,': 0.17; 'bit': 0.21; 'effort.': 0.22; 'matching': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'complain': 0.29; 'received:192.168.1.3': 0.29; "i'm": 0.29; 'version,': 0.30; 'url:python': 0.32; 'to:addr :python-list': 0.33; 'subject:?': 0.35; 'next': 0.35; 'add': 0.36; 'really': 0.36; 'url:org': 0.36; "wasn't": 0.36; 'subject:: ': 0.38; 'things': 0.38; 'url:docs': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'url:5': 0.61; 'first': 0.61; 'useful.': 0.65; 'header:Reply-To:1': 0.68; 'smith': 0.71; 'reply-to:no real name:2**0': 0.72; 'saw': 0.75; 'article': 0.78; 'old,': 0.83; 'memories': 0.84; 'reading,': 0.84; 'reply-to:addr:python.org': 0.84; 'url:tre': 0.84; 'hand,': 0.97 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=O2Kvzccb_dQA:10 a=Fqv6LC0Ce4YA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=E7It5QxQ_6sA:10 a=pGLkceISAAAA:8 a=dkDOvZwhAAAA:8 a=4aLRgLywdNPonoBxFIoA:9 a=wPNLvfGTeEIA:10 a=CLh6IoItyJMA:10 a=VhVvL8HfBcoA:10 a=MSl-tDqOz04A:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Sun, 30 Dec 2012 18:04:02 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: ignore case only for a part of the regex? References: <50e02485$0$3109$ba620e4c@news.skynet.be> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356890644 news.xs4all.nl 6916 [2001:888:2000:d::a6]:42967 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35808 On 2012-12-30 17:32, Roy Smith wrote: > In article , > Vlastimil Brom wrote: > >> you may check the new regex implementation for python >> http://pypi.python.org/pypi/regex > > Wow, I wasn't aware of such an effort. > > At first reading, I'm amused by the concept of "strict fuzzy matching". > > Those of us with long memories will be confused by the name of the > module, however. To me, "regex" is the old version, and "re" is the new > (http://docs.python.org/release/1.5.1/lib/module-regex.html). Now, it's > going to be "regex" is either the really old, or the really new version, > and "re" is what came in between. I suppose the next iteration after > this will be called "re" again :-) > > I'm not sure I like the fuzzy matching stuff. On the one hand, it can > be useful. On the other hand, people already complain about how > difficult it can be to read regexes. Once we add things like > {i<=1,d<=1,s<=1,2i+2d+1s<=4} in the mix, it's going to be total line > noise. > The request for fuzzy matching came after someone saw the TRE library: http://laurikari.net/tre/ The difference is that the syntax is a bit clearer, IMHO. :-)