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[] { '_', ' ' });

Want to kickstart your project?Use the new AI Studio to create your code