Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.166 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.67; '*S*': 0.00; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'two,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'jan': 0.18; 'names.': 0.22; 'questions:': 0.22; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'regular': 0.27; "doesn't": 0.28; 'character.': 0.29; 'preceding': 0.29; 'second,': 0.29; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'characters': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'think': 0.40; 'your': 0.60; 'group,': 0.60; 'most': 0.61; 'subject:, ': 0.61; 'internet,': 0.61; 'first': 0.61; 'subject:...': 0.63; 'total': 0.65; '2013': 0.84; 'subject:very': 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:to :content-type; bh=IUMEPBINvmuL70yqbaIn3y+ZYfocYVqBDQT52dUdzNM=; b=XxvgGqv/gZI/8pwkJAahkjopNsdFFwgtEPkUatGMigYFq7WSpfVv2TvJD3mzoEJRrn 4NJaMsj0pY3m+rVpRMQyCOfZTCg6HdTP4WaN/XysqLRqRs5G4QtV4TRdQUMPtbnlDNDp tZ6KA9h0poZR/eJHXfo2ve+rtvm3R+Bq5jZYXCksSo81IWbGMixqrCX4mykIFNyNzLFB i5O3uw3271qE9qDpQq3qmeIhfcpnkn6QuqBlWHTsYs82ATHIE8VM6wQVAXwgJoww6xYz fatp0LEFNdg9clAUSzBziUqmglBTDbjkXN7R1KZ9dh3TV3cQVGP69OuP822n0AoDEDI2 E6Zw== MIME-Version: 1.0 In-Reply-To: References: <50e4c83b$0$30003$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 3 Jan 2013 22:27:50 +1100 Subject: Re: pylint, was Re: pygame - importing GL - very bad... From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357212473 news.xs4all.nl 6873 [2001:888:2000:d::a6]:34729 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36052 On Thu, Jan 3, 2013 at 10:19 PM, someone wrote: > Doesn't this "[ ... ]" mean something optional? > > What does {2,30}$ mean? > > I think $ means that the {2,30} is something in the end of the sentence... You can find regular expression primers all over the internet, but to answer these specific questions: [...] means any of the characters in the range; the $ means "end of string"; and {2,30} means at least two, and at most thirty, of the preceding character. So you have to have one from the first group, then 2-30 from the second, for a total of 3-31 characters in your names. ChrisA