I am trying to validate a csv file of domain names (eg. @google.com, @xyz.co.uk, @xyz.edu etc.)
I am using the following Regular Expression:
Regex(@"@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}$", RegexOptions.Compiled);
Is there scope for improvement on the above?