Chapter 3: Working with Regular Expressions

A chapter in the Linux Programming Bible; see the Table of Contents for more.


Regular expressions, basically, are pattern matching tools. However, they are one of the most powerful mechanisms at your disposal for parsing data. One regular expression -- just a few characters -- can take the place of hundreds of lines of code with other languages or algorithms. In this chapter, you will learn what regular expressions are and when to use them. Then, you'll learn about all the different features and intracacies of regular expressions. You'll also learn about use of regular expressions in various Linux languages such as Perl, egrep, sed, and others.

Main Sections