12 lines
327 B
C#
12 lines
327 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace DanielLochner.Assets
|
|
{
|
|
public static class StringUtility
|
|
{
|
|
public static string SplitCamelCase(this string str)
|
|
{
|
|
return Regex.Replace(Regex.Replace(str, @"(\P{Ll})(\P{Ll}\p{Ll})", "$1 $2"), @"(\p{Ll})(\P{Ll})", "$1 $2");
|
|
}
|
|
}
|
|
} |