Defining ERE patterns

We saw how easy it is to define BRE patterns. Now, we will see some ERE patterns, which are more powerful.

ERE engines understand the following patterns besides BRE patterns:

By default, AWK supports ERE patterns, and sed needs -r to understand these patterns.