using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
var result = Regex.Match("000AB22CD12.34", @"\d+|\.$", RegexOptions.RightToLeft);
if (result.Success)
{
Console.Write(result.Value);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQl2YXIgcmVzdWx0ID0gUmVnZXguTWF0Y2goIjAwMEFCMjJDRDEyLjM0IiwgQCJcZCt8XC4kIiwgUmVnZXhPcHRpb25zLlJpZ2h0VG9MZWZ0KTsKCQlpZiAocmVzdWx0LlN1Y2Nlc3MpIAoJCXsgCgkJCUNvbnNvbGUuV3JpdGUocmVzdWx0LlZhbHVlKTsKCQl9IAoJfQp9