This document discusses regular expressions (RE) and how they can be used with the grep command. It covers the basic RE character subset used by grep by default, including wildcards like *, ., [], ^, and $. It then explains the extended RE character subset used with grep's -E option, including quantifiers like + and ?, alternation with |, and grouping with (). Finally, it provides examples of using grep with both basic and extended REs to search files for matching patterns.