using System;
using System.Text.RegularExpressions;
public class Program
{
public void Main()
Console.Write("Match: {0}", Regex.Match("foo=bar&hash=00000690821388874159\";\n", @"hash=(\d+)""").Groups[1].Value);
}