public string Change_AV(string ip_str_change)
{
Regex v_reg_regex = new Regex("\\p{IsCombiningDiacriticalMarks}+");
string v_str_FormD = p_str_change.Normalize(NormalizationForm.FormD);
return v_reg_regex.Replace(v_str_FormD, String.Empty)
.Replace('\u0111', 'd').Replace('\u0110', 'D');
}
Nguồn: http://csharpvn.com
No comments:
Post a Comment