[Mono-list] Regex

Reggie Burnett rykr@bellsouth.net
Mon, 27 Jan 2003 07:16:45 -0600


It is Groups but you should be using [] to access it.  It is an indexer

> -----Original Message-----
> From: mono-list-admin@lists.ximian.com [mailto:mono-list-
> admin@lists.ximian.com] On Behalf Of Mark Derricutt
> Sent: Monday, January 27, 2003 5:45 AM
> To: Gonzalo Paniagua Javier
> Cc: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Regex
> 
> Hmmm, then the C# Essentials book I got is wrong cause it usess Group.
> And
> someone on IRC just said it was Group as well.
> 
> Hmmm, changing to:
> 
> 			Group g = m.Groups( gnums[0] );
> 
> now returns:
> 
> mp3lister.cs(48) error CS0119: Expression denotes a `property access'
> where
> a `method group' was expected
> 
> Hmmm.
> 
> 
> --On Monday, January 27, 2003 12:24:54 +0100 Gonzalo Paniagua Javier
> <gonzalo@ximian.com> wrote:
> 
> > The property in Match is not Group, it's Groups.
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list