Capturing Group, , , () :
Regex r = new Regex(@"#([^#]+?)#");
, :
Match m = r.Match("The world is #bright# and beautiful");
string capture = m.Groups[1];
:
Regex r = new Regex(@"#(?<mycapture>[^#]+?)#");
, :
Match m = r.Match("The world is #bright# and beautiful");
string capture = m.Groups["mycapture"];