Basically it checks that the email does not begin with a “.”, contains an @ in the middle and that each domain part can only begin and end with a-z0-9 but may have – in the middle and finally that the rightmost part is “.” and 2-6 characters of a-z.