I'm programming a register system in javascript, and the problem is that i want to check if the email format is correct so i write if(regEmail.includes("@" + ".com")) but the problem is that i don't know how to check if there is any character from the alphabet after @ and before .com
i tried doing if(regEmail.includes("@" + "" + ".com")) but i don't know what to put in the "" after "@" and before ".com" like ("@" + "what should i put here to include any character in the alphabet?" + ".com") and thanks