From: "marcandre (Marc-Andre Lafortune)" Date: 2013-01-31T01:23:52+09:00 Subject: [ruby-core:51762] [ruby-trunk - Bug #7757][Closed] String#start_with? and end_with? should accept Regexp Issue #7757 has been updated by marcandre (Marc-Andre Lafortune). Status changed from Open to Closed Dupe, see #3388, sorry. Need a ram upgrade. ---------------------------------------- Bug #7757: String#start_with? and end_with? should accept Regexp https://bugs.ruby-lang.org/issues/7757#change-35732 Author: marcandre (Marc-Andre Lafortune) Status: Closed Priority: Normal Assignee: Category: core Target version: next minor ruby -v: r38984 As suggested by Ilya in #5536, the following should work: "hello".start_with? /h/ # => true, not a TypeError -- http://bugs.ruby-lang.org/