Now that the gory details are out of the way, here are some examples of simple regular expression usage that you may find useful.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.