User2131089582 posted
remove "ال" or "اَلْ" or "الْ" or "اَل" in from first string in arab word
اَلْفَرَقَ will return فَرَقَ
اَلفَرَقَ will return فَرَقَ
الْفَرَقَ will return فَرَقَ
الفَرَقَ will return فَرَقَ
here is what i have tried
public static string RemoveAl(string input)
{
if (input.StartsWith("ال"))
return input = input.Substring(2);
if (input.StartsWith("اَلْ"))
return input = input.Substring(4);
if (input.StartsWith("الْ") || input.StartsWith("اَل"))
return input = input.Substring(3);
return input;
}
but i think this is not good way is there good way to do that?