Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

regex

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 ?

like image 600
mj-gholami Avatar asked May 02 '12 16:05

mj-gholami


1 Answers

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!

like image 67
Tamer Shlash Avatar answered Oct 24 '22 03:10

Tamer Shlash