[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: email addresses in arabic characters
- To: Development Discussions <developer at arabeyes dot org>
- Subject: Re: email addresses in arabic characters
- From: Mohammed Adnčne Trojette <adn at diwi dot org>
- Date: Mon, 27 Aug 2007 23:08:29 +0200
- User-agent: Mutt/1.5.16 (2007-06-11)
On Fri, Aug 24, 2007, Moazzam Khan wrote:
> I am trying to making a multi-lingual web application and have to
> write a function to validate email addresses. Can a valid email
> address have arabic characters in it? If yes, how can I validate them?
> I am trying to do this in PHP if it helps.
The 822 RFC doesn't allow non ASCII chars, as far as I know.
See http://fr.php.net/manual/fr/function.preg-match.php fo rexamples.
Or http://www.regular-expressions.info/email.html.
Good luck.
--
Mohammed Adnčne Trojette