regexWed, 01 Mar 2023

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

string s = "__my name is Mike___"; s = s.Trim(new char[] { '_', ' ' });

Questions about programming?Chat with your personal AI assistant