Simple class to validate a regular expression and apply it to a text field