|
Appendix A. Regular ExpressionsRegular expressions are used to match strings to patterns, rather than only to literal character strings. The regular expression (sometimes referred to as regex) is a pattern you want to match, such as a pattern that matches all names that begin with B or all phone numbers. Regular expressions are used by many Linux commands and applications that find/select specific text for processing. You can use regular expressions with grep, vi, sed, awk, Perl, PHP, OpenOffice, and many other applications. Regular expressions are combinations of the following:
To create regular expressions, you need to understand what special characters mean and when to use one. This appendix describes the most useful special characters, with examples of their use. |
|