Bug #864: String#include? regexp
http://redmine.ruby-lang.org/issues/show/864

Author: Michael Morgan
Status: Open, Priority: Normal
Category: core, Target version: 1.9.0-5

For consistency, String#include? should be able to take a regexp as an argument. I realize that the return value of String#index(regexp) and String#match(regexp) could be used, but String#include?(regexp) would be both more readable and less resource-intensive.


----------------------------------------
http://redmine.ruby-lang.org