How to match a sentence starting with "أقول" with this code?

How to match a sentence starting with "أقول" with this code?

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

This is an arbic word. "أقول" What is a regular expression?

+7
source share
2 answers

Regarding your comment, you want to find any match starting with "أقول" and ending with "أقول". If so, then it is:

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

For example, if Content :

→ →

Then it will match:

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

No problem with the fact that the Arabic language RTL is all about viewing, they are not stored in reverse order!

+6
source

Seems like a good candidate for me:

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

Maybe this helps a bit: http://social.msdn.microsoft.com/Forums/en-US/regexp/thread/6d511f59-ae7c-46f5-9453-e4cb93ed6123 at the end of the page, anwser is available.

0
source

All Articles