regexWed, 01 Mar 2023

in C# how remove all symbols and whitespaces from start and end

string s = s.Trim(); s = s.TrimStart(); s = s.TrimEnd(); s = s.Replace(" ", "");

Questions about programming?Chat with your personal AI assistant