[Mono-list] Problem ...

Hans-Jürgen Schönig hs@cybertec.at
Sat, 07 Sep 2002 19:58:46 +0200


Does anybody know when groups will be implemented in regular expressions?
The code below works with CSC:

Regex q = new Regex(
    "(?<something>\\w+):(?<another>\\w+)");
Match n = q.Match("Salary:123456");
Console.WriteLine(
    "{0} = {1}", 
    n.Groups["something"].Value,
    n.Groups["another"].Value)

Thanks a lot,

	Hans