Correction of small typos in Regex docs.
Merge pull request #1711 from osaut/docs_regex

An example for Regex.compile and correction of small typos in Regex docs.