> Alex Gutteridge
Yah, I'm use the Enumerable#grep
Here's what I'm trying to do
def literal (search_term, *inputs)
inputs.each do |to_search|
puts open(to_search).grep(search_term)
end
end
When I run that method, it just gives me an blank screen, while using
Regexep(search_term), i get results.
How do I get an exact match?
--
Posted via http://www.ruby-forum.com/.