,k
On Dec 19, 3:55 am, Varun K. [email protected] wrote:
,k
Left the tot unattended at the keyboard, did we?
On 12/19/07, Trans [email protected] wrote:
On Dec 19, 3:55 am, Varun K. [email protected] 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.denhaven2.com/
Rick DeNatale wrote:
On 12/19/07, Trans [email protected] wrote:
On Dec 19, 3:55 am, Varun K. [email protected] 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/ ?
/bb/ or /^bb$/ or /\Abb\z/ ?
def answer_hamlet(life)
life =~ /^(b{2}|[^b]{2})$/
$1
end