// Collection of code snippets by Arne Vajhøj
// posted to eksperten.dk, usenet and other places (2002-now)
using System;
using System.Text.RegularExpressions;
class MainClass
{
public static void Main(string[] args)
{
string s = "
Untitled Document ";
MatchCollection res = Regex.Matches(s,"]*>[^<]*]*>");
for(int i = 0; i < res.Count; i++) {
Console.WriteLine(res[i]);
}
}
}