How to match the sentence that start with "أقول " by this code?

c#, regex

Solution

Regarding you comment, you want to find any match that starts with "أقول " and ends with "أقول". If this is true, then this is the way:

Regex.Matches(Content, "أقول .*أقول");

For example, if the `Content` is:

أقول ولكنك لا تسمع ما أقول بسبب صوتك العالي

Then it will match:

أقول ولكنك لا تسمع ما أقول

There is no problem with Arabic being RTL, it's all about viewing, they are not stored in in reverse!

Problem

How to match the sentence that start with "أقول " by this code? ``` Regex.Matches(Content, "أقول " ); ``` This is an arbic word. "أقول " What is the regular expression exactly ?

Original source