pylint, was Re: pygame - importing GL - very bad...

someone newsboost at gmail.com
Fri Jan 4 20:11:26 EST 2013


On 01/03/2013 12:27 PM, Chris Angelico wrote:
> On Thu, Jan 3, 2013 at 10:19 PM, someone <newsboost at gmail.com> 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.

Got it, thanks!





More information about the Python-list mailing list