perl.fwp...Re: regex of the month (decade) by David Landgren- January 11, 2008 Michael G Schwern wrote:> And the reverse is now true in this highly inaccurate test...> > $ time perl5.8.8 -wle &39;$foo = "x" x 10000; $foo .= "T"; $foo = Tt for> 1..100000&39;> > real 0m5.732s> user 0m5.565s> sys 0m0.027s> > $ time perl5.8.8 -wle &39;$foo = "x" x 10000; $foo .= "T"; $foo = ti for> 1..100000&39;> > real 0m2.589s> user 0m2.544s> sys 0m0.015sAnd if I recall my perl510delta.http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4072.html Re: regex of the month (decade) by Michael G Schwern- January 10, 2008 Sébastien Aperghis-Tramoni wrote:> Q: Why do you use Tt instead of ti It&39;s so ugly!> > A: Simple - the case-insensitive match switch is very> inefficient. According to "Mastering Regular Expressions"> from O&39;Reilly Press, Tt is faster and more space> efficient than ti - by as much as double against long> strings. i essentially does a lc() on the string and> keeps a temporary copy in memory.> > When this...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4071.html Re: regex of the month (decade) by Sbastien Aperghis-Tramoni- January 10, 2008 Dan Collins wrote:> On Jan 7, 2008 5:06 PM, Uri Guttman <uristemsystems.com> wrote:>>> (Pp(OoSsTt).sOo(FfFfIiCcEe).sBbOo>> Xx)PpOo(BbXxDdRrAaWwEeRrSsTtOoFf >> Ff>> IiCcEe BbXxBbOoXx)PpOoBb(XxOo >> Xx>> UuZzOoNn)Aa(PpAaRrTtAaDdOoPpTtDdOo)>>>> the challenge: itemize the stupidities. the case issue is only 1! i>> don&39;t want to even post the &39;spec&39; unless asked for it. i saw this on>> usenet today.>> I don&39;t...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4070.html Re: regex of the month (decade) by David Landgren- January 8, 2008 Stoll, Steven R. wrote:> After solving the case sensitivity issue, separating the alternations, and> solving the un-escaped , here is what we are left with.> > (p(ost).so(ffice).sbox)> po(bxdrawerstoffice bxbox)> po> b(xoxuzon)> a(partadoptdo)If we unroll that topost.so(ffice).sboxp.so(ffice).sboxpobpoxpodrawerpostofficepo bxpoboxpobxboxbuzonapartadoaptdoreassembling it, we obtain(:p(:o(:st(:.so(ffice).sboxoffice)(:...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4069.html RE: regex of the month (decade) by Stoll, Steven R.- January 8, 2008 You&39;re right. Mistook it for (.s) for some reason. My description of .still stands however. But the following should...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4068.html Re: regex of the month (decade) by Keith Ivey- January 8, 2008 Stoll, Steven R. wrote:> (p(ost).so(ffice).sbox)> po(bxdrawerstoffice bxbox)> po> b(xoxuzon)> a(partadoptdo)> > Which matches:> (p(ost).o(ffice).box)> > post(anynumberofanythingexceptnewline)office(anynumberofanythingexceptnewlin> e)box&39;.s&39; matches any number of periods or whitespace characters, since &39;.&39; is not special inside a character class. It&39;s not the same as &39;.&39;. Also, even if &39;.&39; were special, &39;s&39; matches newline...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4067.html RE: regex of the month (decade) by Stoll, Steven R.- January 8, 2008 After solving the case sensitivity issue, separating the alternations, andsolving the un-escaped , here is what we are left with.(p(ost).so(ffice).sbox)po(bxdrawerstoffice bxbox)pob(xoxuzon)a(partadoptdo)Which...http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4066.html RE: regex of the month (decade) by Meryll Larkin- January 7, 2008 I think I would rewrite Oo(FfFfIiCcEe)as (OoFfFfIiCcEe) but, pardon my ignorance, won&39;t an "i" at the end of the regex make it catcheither caseMeryll-----Original Message-----From: Uri Guttman mailto:uristemsystems.com Sent: Monday, January 07, 2008 2:06 PMTo: Fun with PerlSubject: regex of the month (decade)(Pp(OoSsTt).sOo(FfFfIiCcEe).sBbOoXx)PpOo(BbXxDdRrAaWwEeRrSsTtOoFfFfIiCcEe BbXxBbOoXx)PpOoBb(XxOoXxUuZzOoNn)Aa(PpAaRrTtAaDdOoPpTtDdOo)the challenge: itemize the stupidities. the.http://www.nntp.perl.org/group/perl.fwp/2008/01/msg4065.html |