Regex matching

Added some regex matching to the javascript validation.  More to come...