using System;
using System.Text.RegularExpressions;
class Demo {
public static void Main()
{
String text = "faces=rect64(3f845bcb59418507),8e62398ebda8c1a5;rect64(9eb15e89b6b584c1),d10a8325c557b085";
Regex re = new Regex(@"rect64\(([a-f0-9]+)\)");
foreach (Match match in re.Matches(text)) {
Console.WriteLine(match.Groups[1]);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpjbGFzcyBEZW1vIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKICAgIHsKICAgICAgICBTdHJpbmcgdGV4dCA9ICJmYWNlcz1yZWN0NjQoM2Y4NDViY2I1OTQxODUwNyksOGU2MjM5OGViZGE4YzFhNTtyZWN0NjQoOWViMTVlODliNmI1ODRjMSksZDEwYTgzMjVjNTU3YjA4NSI7CiAgICAgICAgUmVnZXggcmUgPSBuZXcgUmVnZXgoQCJyZWN0NjRcKChbYS1mMC05XSspXCkiKTsKICAgICAgICBmb3JlYWNoIChNYXRjaCBtYXRjaCBpbiByZS5NYXRjaGVzKHRleHQpKSB7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKG1hdGNoLkdyb3Vwc1sxXSk7CiAgICAgICAgfQogICAgfQp9