Fixed the link to the "regular expressions" entry in the glossary.
Separate code from output. Also clarify a few small things in the Simple Patterns text.