corpus = "foxes and goats" corpus =~ /foxes/ # => 0 corpus =~ /and/ # => 6 corpus =~ /and$/ # => nil corpus =~ /.es\s+/ # => 2