using System.Text.RegularExpressions; public static class MarkupHelper { public static string HighlightNumbers(string input, string color, bool italicize = false) { if(string.IsNullOrEmpty(input) || string.IsNullOrEmpty(color)) return input; // Match integers and decimals (e.g., 42, 3.14, -7) string pattern = @"(?