I have this regulular expression to validate email id but I can't allow two consecutive hyphen on domain, However it doesn't works for me whatever the fix I made. Could anyone please help?
/^[a-zA-Z\-0-9](([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\-\].,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
Test Id to fail case: sant@y--t.com
Please help, Thanks for your assisstance!