I have this regex
var reg = /^[a-zA-Z0-9._]+@[gmail | yahoo | hotmail]{5,7}.[com | net | org]{3}$/
I want to accept just "gmail hotmail and yahoo" with ".com .net and .org" Is there any method...to set the above regex according to my needs.
Also how to set the range so that it only accept the length of 5 and 7 characters.