develooper Front page | perl.perl5.porters | Postings from September 2011

Re: Regex warning

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?Zsb=E1n_Ambrus?=
Date:
September 27, 2011 04:26
Subject:
Re: Regex warning
Message ID:
CAHku1CE38y-SCzAz8Xhr4_DsL6cG4OuTnAXaeMZ81439ea_LDA@mail.gmail.com
On Thu, Sep 22, 2011 at 6:32 AM, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
> * Karl Williamson <public@khwilliamson.com> [2011-09-22 04:50]:
>> I now regret not also deprecating '\w{'
>
> Let’s do that? It’ll take another cycle but so what.

DON'T do that.  We could deprecate /\b{/ because /\b{3,12}/ is
equivalent to just a single /\b/.  However, /\w{3,12}/ is very
different from just /\w/, and so it is actually useful in a regular
expression.

Ambrus

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About