[Rio-pm] bigramas e regexp

Daniel de Oliveira Mantovani daniel.oliveira.mantovani em gmail.com
Quarta Março 14 11:32:38 PDT 2012


On 14 March 2012 15:19, Randal L. Schwartz <merlyn em stonehenge.com> wrote:
>>>>>> "Danillo" == Danillo Souza <danillo012 em gmail.com> writes:
>
> Danillo> $_ = q(anticonstitucionalissimamente);
> Danillo> my @pairs = $_ =~ m{ (?= (..) ) }xmsg;
>
> Please don't suffix every regex with "xmsg", despite Damian Conway's
> plea to do that.  You have no ^ or $, so "m" does nothing there.
> And you had no newlines in the original text, so "s" is also doing
> nothing there.
>
> Don't turn into a robot.  Think.

Randal L. Schwartz awesome answer.

"Don't turn into a robot.  Think." - Randal L. Schwartz


>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn em stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.posterous.com/ for Smalltalk discussion
> _______________________________________________
> Rio-pm mailing list
> Rio-pm em pm.org
> http://mail.pm.org/mailman/listinfo/rio-pm



-- 
"If you’ve never written anything thoughtful, then you’ve never had
any difficult, important, or interesting thoughts. That’s the secret:
people who don’t write, are people who don’t think."


Mais detalhes sobre a lista de discussão Rio-pm