Hi,

At Tue, 6 Nov 2007 22:02:27 +0900,
David A. Black wrote in [ruby-talk:277691]:
> You could do:
> 
>    if a.index("long") == 0

rindex("long", 0) is faster for long but unmatching strings.

-- 
Nobu Nakada