Chapter 13. Searching with grep in Ruby
Ruby offers a wide variety of options when it comes to searching through strings. In this chapter, you'll learn how to use the powerful grep
method in Ruby programs to search through data. Additionally, you'll be able to:
- Demonstrate how to implement the
grep
method in order to match designated patterns in a string - Show how to combine regular expressions with
grep
to find values