using System.Text.RegularExpressions;
private static readonly Regex _validationRegex = new(@"0*([0-9]+\.?[0-9]*)$", RegexOptions.Compiled);
private static readonly string _pattern = @"0*([0-9]+\.?[0-9]*)$";
public static void Main()
Console.WriteLine("Hello World");
var matches = Regex.Matches("00000.00220", _pattern);
foreach (Match match in matches)
string extractedText = match.Groups[5].Value;
Console.WriteLine("text: " + match.Groups.Count);