hafez ahmad wrote:
Hi All,

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

I wonder if that even could work. Language doesn't follow logic, which is what you'd test for with reg expressions. I'd see if there is a chance to hook into the Mozilla or OOo dictionaries. Send the selected text through all the dics and assume that the one with the least amount of errors is the one that matches the dic language. That process will take forever and fail when you have horrible spellers. Or do you want to check for the different type of character set used? If you could provide some more detail of what you try to accomplish I guess we could give you some more hints.

David
_______________________________________________
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