Skip to Content

Regular Expression for Arabic Plural Forms

Gharbeia's picture

Greetings

I am trying to write a C regular expression for Arabic Plural forms to use in Arabising software. I have not done any C in more than a decade, and could use some help.

Arabic distinguishes between the following cases (0, 1, 2, 3-10, 11+). I am using an example as a link to a comments page in a blog:

لا تعليقات

تعليق واحد

تعليقان

تعليقات

تعليقا

The cases are actually four, as zero and three-to-nine use the same form of plural, but since لا تعليقات has more meaning in Arabic than صفر تعليقات, I thought they could be separated.

Gharbeia's picture

Taken into the hundreds

It's turning out to be more complicated:

Case 0: 0 Case 1: 1 Case 2: 2 Case 3: 3-10 103-110 Case 4: 11-99 101, 102, 111-199 Case 5: 100 200

Alaa's picture

wiki page

Alaa


"i`m feeling for the 2nd time like alice in wonderland reading el wafd"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | forum