Correct regexes, better docs

Includes:

* Update regexes to bind to beginning and end of string, rather than
  beginning and ending of lines
* Fix docs to stress the importance of content-type validations.