public static TrimNotIn ( this text, IList |
||
text | this | The text to be scanned. |
chars | IList |
The characters to be kept, such as a LexicalCharacterSet characters list. |
return | string |
public static string TrimNotIn(this string text, IList<char> chars)
{
return text.TrimEndNotIn(chars).TrimStartNotIn(chars);
}