String#starts_with?

String#index should be the fastest

thanks. any suggestions for #ends_with?

If the above is correct, String#rindex.

Best regards,
Axel

doh - completely forgot about rindex.

martin

ยทยทยท

On 7/9/06, Nuralanur@aol.com <Nuralanur@aol.com> wrote:

>> String#index should be the fastest

>thanks. any suggestions for #ends_with?

If the above is correct, String#rindex.