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

Re: Regex warning

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
September 21, 2011 14:06
Subject:
Re: Regex warning
Message ID:
3582.1316639179@chthon
David Nicol <davidnicol@gmail.com> wrote
   on Wed, 21 Sep 2011 16:03:46 CDT: 

>>>>> $ bleadperl -we'$_="{";m/\b$_\b/'
>>>>> "\b{" is deprecated; use "\b\{" instead in regex; marked by<-- HERE<SNIP>

>I'm curious -- what is the deprecated meaning of "\b{" ? Was it
>introduced after 5.10? Is there a plan to, in the future, let \b take
>an optional curly-delimited argument?

Yes, I believe that's the reason.  Unicode has word-, line-, and sentence-
break properties, and there's also the grapheme cluster string boundary.
Plus we do simplistic word boundaries based on \w, not the fancier version
that they recommend.

--tom

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