I\'m trying to search for the word Gadaffi. What\'s the best regular expression to search for this?
My best attempt so far is:
\\b[KG]h?add?af?fi$\\
I think you're over complicating things here. The correct regex is as simple as:
\u0627\u0644\u0642\u0630\u0627\u0641\u064a
It matches the concatenation of the seven Arabic Unicode code points that forms the word القذافي (i.e. Gadaffi).