Matches one or more occurrences of the single preceding character.
?
Matches zero or one occurrence of the single preceding character.
| (pipe symbol)
If you place a pipe symbol between two regular expressions, a string that matches either expression will be accepted. In other words, a | acts like an "or" operator.
()
If you place a regular expression in parentheses, you may use the *, +, or ? metacharacters to operate on the entire expression, rather than just a single character.
Figure A-4 lists some examples of full regular expressions, using the example file from Section A.1.1.