const emailValidation = (email) => { const emailRegex = /^(([^<>()[\]\\.,;:\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,}))$/; return emailRegex.test(email); }; const passwordValidation = (pwd) => { const passwordRegex = /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*\W)[A-Za-z\d\W]{8,30}$/; return passwordRegex.test(pwd); }; const phoneValidation = (phone) => { const phoneRegex = /^[+0-9]+$/; return phoneRegex.test(phone); };