Added ability to validate the number of decimal places

We needed this to help validate currency fields to ensure that the correct level of precision was presented.
Moving the regex out gives about 2-4% performance boost.