Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Regular expressions Date: Thu, 5 Nov 2015 19:06:21 +1100 Lines: 16 Message-ID: References: <662g3blobme52hfoududj27err185v2npm@4ax.com> <56397a18$0$11094$c3e8da3@news.astraweb.com> <56397FC6.9040700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de UGLf4Z6xiXRGwUeQHkAfRAULzF15hyehJ6U9VHFjNMxQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'matches': 0.07; 'cc:addr:python-list': 0.09; 'command.': 0.09; 'grep': 0.09; 'thu,': 0.15; 'expressions,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gregory': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Regular': 0.16; 'subject:expressions': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'tim': 0.24; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'gnu': 0.27; 'regular': 0.29; 'chase': 0.29; 'received:google.com': 0.35; 'nov': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'names': 0.38; 'engine': 0.62; 'chrisa': 0.84; 'to:none': 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:cc :content-type; bh=IzjW07rDiVfGDKFYPBsuebStEtWJCHgkw3TrERuxT1c=; b=NOXEJXQ9Q9+Ui4njksdUIrkR6yNdBJW0RlUZ0MYSayaxLXr6CSleSyB4TGqYGgE3JJ Ji/hKwX96T7Gx6QhvuUruyq0ki9O61A3P8b9UzmaF8C4T3hhqx/nyue5oElklVMHWtOP Affp44fyW1WhWrRIB1MpJTme4XpbfGr2V4+y8cVEapEf+zT/yYUO4jQGgWiHJOPuE4xB kzQhBYWYmdJCw5iSoymkf7tKdPeIjbdyiC9SKeBDEouxGkyZuWYmXPhuJ+V3LXm8hwv+ Ngh7FKCRPpx7SvpXlsnAO/hIlVEhoGc6ukgNMxJembRrJDI5sRDvAUGIxg/t5YsS739s jlYA== X-Received: by 10.107.34.149 with SMTP id i143mr7432815ioi.157.1446710781591; Thu, 05 Nov 2015 00:06:21 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98289 On Thu, Nov 5, 2015 at 6:55 PM, Gregory Ewing wrote: > Tim Chase wrote: > >> You get even crazier when you start adding zgrep/zegrep/zfgrep. > > > It's fitting somehow that we should need an RE > to describe all the possible names of the grep > command. Regex engine golf: Find the shortest regex that matches the names of all GNU commands which accept regular expressions, and no other commands! ChrisA