Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Regex for Matching Arabic Dates

807580Jul 19 2010
I'm working on a program that is running a series of regexs to attempt to find a date within the DOM from a webpage.
For example, in [http://www.engadget.com/2010/07/19/windows-phone-7-in-depth-preview/|http://www.engadget.com/2010/07/19/windows-phone-7-in-depth-preview/], I would match "Jul 19th 2010" with my regex. Things were going fine in multiple formats and languages until I hit an arabic webpage.
As an example, consider [http://islammaktoob.maktoobblog.com/|http://islammaktoob.maktoobblog.com/] The date July 18, 2010 appears in Arabic at the top of the post, but I can't figure out how to match it. Does anyone have any experience on matching Arabic dates? If someone could post an example or the regex they would use to match that Arabic date, it would be very helpful. Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2010
Added on Jul 19 2010
0 comments
314 views