Re: 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

On 7/9/06, [email protected] [email protected] wrote:

String#index should be the fastest

thanks. any suggestions for #ends_with?

If the above is correct, String#rindex.

doh - completely forgot about rindex.

martin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs