[Mono-list] RegExp Bug ...

Hans-Jürgen Schönig hs@cybertec.at
Wed, 04 Sep 2002 19:19:55 +0200


Piers Haken wrote:

>Mono bug aside...
>
>"d*.y" matches any number of 'd's followed by any character followed by
>y.
>
>"d.*y" matches d followed by any number of any character followed by y.
>
>But '*' is greedy, so in your example it would match "day Bloody Sunday"
>
>May be you want "d.*?y"
>
>I _believe_  perl works in the same way, in fact the .NET RegExs are
>supposed to pretty close to the perl 5 ones.
>
>Piers.
>
>  
>

I wanted d.*y or something like that but it didn't work.
i got just one match although I expected three matches.
i have done so much regular expression work with perl but c# seems to be 
strange in a way.

    Hans



-- 
*Cybertec Geschwinde u Schoenig*
Ludo-Hartmannplatz 1/14, A-1160 Vienna, Austria
Tel: +43/1/913 68 09; +43/664/233 90 75
www.postgresql.at <http://www.postgresql.at>, cluster.postgresql.at 
<http://cluster.postgresql.at>, www.cybertec.at 
<http://www.cybertec.at>, kernel.cybertec.at <http://kernel.cybertec.at>