Create ValidateRegex.php

Provides validation against a regular expression.