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