,k
···
--
Posted via http://www.ruby-forum.com/.
,k
--
Posted via http://www.ruby-forum.com/.
Left the tot unattended at the keyboard, did we?
On Dec 19, 3:55 am, Varun Kumar <g.kumarva...@gmail.com> wrote:
,k
No, it's the answer to Hamlet's soliloquy.
Apparently the answer is. NOT two b's.
On 12/19/07, Trans <transfire@gmail.com> wrote:
On Dec 19, 3:55 am, Varun Kumar <g.kumarva...@gmail.com> wrote:
> ,kLeft the tot unattended at the keyboard, did we?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
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
/bb/ or /^bb$/ or /\Abb\z/ ?
def answer_hamlet(life)
life =~ /^(b{2}|[^b]{2})$/
$1
end
--
Sylvain