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


Groups > comp.lang.python > #35826

Re: ignore case only for a part of the regex?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'syntax': 0.03; 'python': 0.09; 'part,': 0.09; 'subject:ignore': 0.09; 'cc:addr:python-list': 0.10; 'library': 0.15; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'fuzzy': 0.16; 'llama': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'programmer,': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:edu.au': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'roy': 0.16; 'simpson': 0.16; 'stuff.': 0.16; 'subject:case': 0.16; 'wrote:': 0.17; 'skip:{ 20': 0.17; '(or': 0.18; 'cheers,': 0.23; 'cc:2**0': 0.23; 'matching': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'looks': 0.26; 'argue': 0.29; 'complain': 0.29; 'obliged': 0.29; 'perl': 0.29; "i'm": 0.29; 'url:python': 0.32; 'sometimes': 0.35; 'subject:?': 0.35; 'add': 0.36; 'but': 0.36; 'url:org': 0.36; 'received:au': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'bad': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'sure': 0.38; 'content-disposition:inline': 0.60; 'matter': 0.61; 'total': 0.65; 'useful.': 0.65; 'smith': 0.71; 'article': 0.78; 'life.': 0.81; 'hand': 0.82; 'hand,': 0.97
Date Mon, 31 Dec 2012 11:29:17 +1100
From Cameron Simpson <cs@zip.com.au>
To Roy Smith <roy@panix.com>
Subject Re: ignore case only for a part of the regex?
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <roy-0011CF.12321430122012@news.panix.com>
User-Agent Mutt/1.5.21 (2010-09-15)
References <roy-0011CF.12321430122012@news.panix.com>
Cc python-list@python.org
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.1478.1356913760.29569.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356913760 news.xs4all.nl 6912 [2001:888:2000:d::a6]:38879
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35826

Show key headers only | View raw


On 30Dec2012 12:32, Roy Smith <roy@panix.com> wrote:
| In article <mailman.1467.1356885520.29569.python-list@python.org>,
|  Vlastimil Brom <vlastimil.brom@gmail.com> wrote:
| > you may check the new regex implementation for python
| > http://pypi.python.org/pypi/regex
[...]
| 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.

One might argue that people are not obliged to use the fuzzy matching
syntax (or any other part, really). It should be a matter of taste.
Of course, some people have bad taste:-)

However if you need fuzzy matching, it is very handy if there's a library to
hand that offers it.

Cheers,
-- 
Cameron Simpson <cs@zip.com.au>

Yes, sometimes Perl looks like line-noise to the uninitiated, but to the
seasoned Perl programmer, it looks like checksummed line-noise with a mission
in life.        - The Llama Book

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


Thread

re: ignore case only for a part of the regex? Helmut Jarausch <jarausch@skynet.be> - 2012-12-30 11:24 +0000
  Re: ignore case only for a part of the regex? Roy Smith <roy@panix.com> - 2012-12-30 10:20 -0500
    Re: ignore case only for a part of the regex? Joel Goldstick <joel.goldstick@gmail.com> - 2012-12-30 10:41 -0500
    Re: ignore case only for a part of the regex? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-01 04:14 +0000
      Re: ignore case only for a part of the regex? Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-01-02 00:09 +0100
        Re: ignore case only for a part of the regex? wxjmfauth@gmail.com - 2013-01-02 06:17 -0800
        Re: ignore case only for a part of the regex? wxjmfauth@gmail.com - 2013-01-02 06:17 -0800
  Re: ignore case only for a part of the regex? Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-12-30 17:38 +0100
    Re: ignore case only for a part of the regex? Roy Smith <roy@panix.com> - 2012-12-30 12:32 -0500
      Re: ignore case only for a part of the regex? MRAB <python@mrabarnett.plus.com> - 2012-12-30 18:04 +0000
      Re: ignore case only for a part of the regex? Cameron Simpson <cs@zip.com.au> - 2012-12-31 11:29 +1100

csiph-web