i am not very experienced in Regular Expression so its why i am asking you 🙂
my question is i use this pattern when i validate Emails.
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zAZ\-0-9]+\.)+[a-zA-Z]{2,}))$/
what is it to add to this pattern to disallow Arabic characters ?
Regular expressions should not be used to validate emails.
The correct way to validate an email address is using the
MailAddressclass like this:Regarding the question itself, after you see that it is a valid email address – you can check for arabic characters.