10 lines
No EOL
278 B
C#
Executable file
10 lines
No EOL
278 B
C#
Executable file
using System.Text.RegularExpressions;
|
|
|
|
namespace Dan
|
|
{
|
|
public static class ExtensionMethods
|
|
{
|
|
public static string SplitByUppercase(this string str) =>
|
|
Regex.Replace(str, @"(\B[A-Z]+?(?=[A-Z][^A-Z])|\B[A-Z]+?(?=[^A-Z]))", " $1");
|
|
}
|
|
} |