Regular Expressions in Ruby

In this section of the course, we are going to talk about using regular expressions in Ruby. The goal of this guide is to familiarize you with regular expressions in Ruby and give you the tools necessary to expand your knowledge. As always, we will learn with a practical example that you can use while doing real-world programming.
Pattern matching is a common requirement for building code libraries, such as validations and basic search functionality. In this chapter, we're going to work with regular expressions in Ruby, including the built-in Regexp class that allows you to build matchers and dynamically search through data. Additionally, you will be able to:

  • Demonstrate how to implement pattern matching in a Ruby program with regular expressions
  • Employ different ways in which you can call regular expressions to detect values in string-based values
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.31.41