[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bbbbbbbbbbbbbbbbb

Varun Kumar

12/19/2007 8:55:00 AM

,,,,k
--
Posted via http://www.ruby-....

4 Answers

Trans

12/19/2007 9:56:00 AM

0



On Dec 19, 3:55 am, Varun Kumar <g.kumarva...@gmail.com> wrote:
> ,,,,k

Left the tot unattended at the keyboard, did we?

Rick DeNatale

12/19/2007 12:00:00 PM

0

On 12/19/07, Trans <transfire@gmail.com> wrote:
>
>
> On Dec 19, 3:55 am, Varun Kumar <g.kumarva...@gmail.com> wrote:
> > ,,,,k
>
> Left the tot unattended at the keyboard, did we?

No, it's the answer to Hamlet's soliloquy.

Apparently the answer is. NOT two b's.

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denh...

Joel VanderWerf

12/19/2007 4:53:00 PM

0

Rick DeNatale wrote:
> On 12/19/07, Trans <transfire@gmail.com> wrote:
>>
>> On Dec 19, 3:55 am, Varun Kumar <g.kumarva...@gmail.com> wrote:
>>> ,,,,k
>> Left the tot unattended at the keyboard, did we?
>
> No, it's the answer to Hamlet's soliloquy.
>
> Apparently the answer is. NOT two b's.

Hm. But which regex was Hamlet using?

/bb/ or /^bb$/ or /\Abb\z/ ?

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Sylvain Joyeux

12/19/2007 5:22:00 PM

0

> /bb/ or /^bb$/ or /\Abb\z/ ?
def answer_hamlet(life)
life =~ /^(b{2}|[^b]{2})$/
$1
end
--
Sylvain