2025-07-22 01:18:44 +05:00

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");
}
}
}