[Rio-pm] bigramas e regexp
Randal L. Schwartz
merlyn em stonehenge.com
Quarta Março 14 11:19:17 PDT 2012
>>>>> "Danillo" == Danillo Souza <danillo012 at 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 - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at 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
Mais detalhes sobre a lista de discussão Rio-pm