I have a few requirements to validate email address and have a few regex expressions for that purpose. But how I can combine them to one regex to make it work correctly?
(?=^\\S+@\\S+\\.\\S+$)
Dotted email address
(?=^[A-Za-z0-9@$\\._-]+$)
allows alphanumeric, '@', '.', '_', '-'
(?=^[A-Za-z0-9].*$)
cannot start with special character
(?=^.{5,100}$)
between 5 and 100 characters
(?=^((?!([0-9]{9,}\\1)).)*$)
Not nine or more numbers
(^(?!.*[@].*[@]).*$)
One at mark