O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

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

Extended Regular Expressions

The three utilities egrep, grep when run with the –E option (similar to egrep), and gawk provide all the special characters that are included in ordinary regular expressions, except for \( and \), as well as several others. The vi (vim) editor includes the additional characters as well as \( and \). Patterns using the extended set of special characters are called full regular expressions, or extended regular expressions.

Two of the additional special characters are the plus sign (+) and question mark (?). They are similar to the *, which matches zero or more occurrences of the previous character. The plus sign matches one or more occurrences of the previous character, whereas the question mark matches zero or one ...

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