const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const email = "example@domain.com"; console.log(emailRegex.test(email)); // خروجی: true