regexWed, 01 Mar 2023

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

str = Regex.Replace(str, @"\s+", "");

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