Using the Regex type provider

There are some nuances to using the regular expression type provider that are easy to miss. This snippet addresses them.