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

* Add missing 's'
* Add some missing Markdown markup.
* Add two examples for Regex.compile