I'm a newbie of using regex.
How can I count specific letter on a string ?
var str = "FFFF000FFFCA";
i want an output of 4F303FCA.
I used
Regex.Replace(str, @"(.)\1*", m => m.Value.Length + m.Groups[1].Value);but the output is : 4F303F1C1A
Thank you for helping.