using System.Text.RegularExpressions;
public static void Main()
string fixThis = @"Hans4444müller,Mary555kren";
var re = new Regex("\\d+");
var newText = re.Replace(fixThis, GetRomanText);
Console.WriteLine(newText);
private static string GetRomanText(Match m) {
string[] roman = new[] { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "IX" };
if (c >= 48 && c <= 57) {