To parse alphabets from a string you can use the following code.
public static string ParseAlphabets(string str)
{ return Regex.Replace(str, "[^a-zA-Z]+", string.Empty, RegexOptions.Compiled);
}
you can change the "[^a-zA-Z]+" part to customize the functionality.
public static string ParseAlphabets(string str)
{ return Regex.Replace(str, "[^a-zA-Z]+", string.Empty, RegexOptions.Compiled);
}
you can change the "[^a-zA-Z]+" part to customize the functionality.
Comments
Post a Comment