Removed usage of filter_var() for broader compatibility. Replaced by a
less restrictive regular expression.
Even less restrictive regular expression.
Merge pull request #6 from mollienl/rick/replace-filter_var

Removed usage of PHP 5.2 filter_var() for broader compatibility.