using System;
using System.Text.RegularExpressions;
public class Test {
public static void Main() {
string pattern = "<from_id>(.*?)</from_id>";
string input = "<?xml version=\"1.0\" encoding=\"utf-8\"?><response list=\"true\"><count>2802</count><post><id>4210</id><from_id>2176594</from_id><to_id>-11423648</to_id><date>1365088358</date><text>dsadsad #ADMIN</text>";
Match match = Regex.Match(input, pattern);
if (match.Success){
System.Console.WriteLine(match.Groups[1].Value);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CiAKcHVibGljIGNsYXNzIFRlc3QgewogICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKSB7CiAgICAgICAgc3RyaW5nIHBhdHRlcm4gPSAiPGZyb21faWQ+KC4qPyk8L2Zyb21faWQ+IjsKICAgICAgICBzdHJpbmcgaW5wdXQgPSAiPD94bWwgdmVyc2lvbj1cIjEuMFwiIGVuY29kaW5nPVwidXRmLThcIj8+PHJlc3BvbnNlIGxpc3Q9XCJ0cnVlXCI+PGNvdW50PjI4MDI8L2NvdW50Pjxwb3N0PjxpZD40MjEwPC9pZD48ZnJvbV9pZD4yMTc2NTk0PC9mcm9tX2lkPjx0b19pZD4tMTE0MjM2NDg8L3RvX2lkPjxkYXRlPjEzNjUwODgzNTg8L2RhdGU+PHRleHQ+ZHNhZHNhZCAjQURNSU48L3RleHQ+IjsKICAgICAgICBNYXRjaCBtYXRjaCA9IFJlZ2V4Lk1hdGNoKGlucHV0LCBwYXR0ZXJuKTsKICAgICAgICBpZiAobWF0Y2guU3VjY2Vzcyl7CiAgICAgICAgICAgIFN5c3RlbS5Db25zb2xlLldyaXRlTGluZShtYXRjaC5Hcm91cHNbMV0uVmFsdWUpOwogICAgICAgIH0KICAgIH0KfQ==