> How can I use regular expression to determine the text language, is
> the selected text is English, Arabic, Hebrow,  .....etc

You can't use a regular expression to determine language - or at least not
a very simple one. Each language has certain particularities, such as
letter combinations, and statistically you can test enough of these to get
an accurate determination.

I'm not aware of any php tools (but watch me be corrected in this list ;-)
--- I suggest you look at the language guess tool here:
http://languid.cantbedone.org/ It's not in php but you should be able to
invoke it via the command line, or rewrite it in php.

Carlos Hoyos


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to