[Mono-list] Regex

Mark Derricutt mark@talios.com
Mon, 27 Jan 2003 23:12:53 +1300


Anyone here got Group's working with Regex on Mono?

just trying the following code:

  using System.Text.RegularExpressions;
  ..........
  static void ProcessFile( string file )
	{
		Match m = ismp3.Match( file );
		if ( m.Success )
		{	
			count++;
			int[] gnums = ismp3.GetGroupNumbers();
			Group g = m.Group( gnums[0] );
			Console.WriteLine( count + " - " + g.ToString() );
		}
	}

For some reason this won't compile, saying:

mp3lister.cs(48) error CS0117: `System.Text.RegularExpressions.Match' does 
not contain a definition for `Group'


Anyone know whats up?  Using mono-0.18-1 from rpm...