Wed, 08 Jan 2020 16:11 UTC by garethbrown
Split string on regex
public static string SplitOnCapital(this string str)
return Regex.Replace(str, @"(\B[A-Z]+?(?=[A-Z][^A-Z])|\B[A-Z]+?(?=[^A-Z]))", " $1");
These help us to fund the running of this site. Please click "OK" if you are happy to proceed, or "No thanks"