O'Reilly logo

Ruby Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Working with Regular Expressions

In previous chapters, you learned how to create an assortment of different computer games. In most of these games, you more or less accepted whatever input the player provided, with little or no validation. In this chapter, this changes because you will learn how to use regular expressions. Using regular expressions, you can perform a detailed analysis of user input to determine if it meets criteria you specify. Using regular expressions, you will also be able to pick apart and process the contents of data regardless of its source, including text files and databases. You will also learn how to perform text-substitution operations and to deal with differences in case. On top of all this, this chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required