Removed usage of filter_var() for broader compatibility.

 Replaced by a less restrictive regular expression.