[Mono-devel-list] Regular expression problem with characters '{' and '}'

Eric Durand-Tremblay erdut2 at ift.ulaval.ca
Thu Jan 15 11:20:59 EST 2004


Jörg Rosenkranz a écrit :

>Hi all,
>
>I have a problem with regular expression using braces, i.e. "{\w+}".
>The Regex constructor throws an ArgumentException with this expression. MS.NET accepts
>this without problems. I know that braces are used for quantifiers.
>
>Is this a Mono bug or is the MS.NET runtime misbehaving?
>
>Thanks,
>Joerg.
>
>2??u?Þ–X??f??)?+-2??u?Þ–X??X???b?&?r????Á¿?X???b?&?r?????????+-?w??j'?ׯzYbst==
>
Correct me if I am wrong, but the only usage of braces, as you say, is 
for quantifiers ;
{n} {n,} {n,m} {n}? {n,}? {n,m}?
where 'n' and 'm' are integer.

What exactly are you trying to do.  Capturing group are between ()   
and non-capturing (?: )

I could be tempted to say that it is MS misbehaving but who am I to say 
so....

Eric Durand Tremblay
University Laval






More information about the Mono-devel-list mailing list