[Mono-devel-list] Patch for Bug 45976

Francois Beauchemin beauche at softhome.net
Tue Jan 20 12:33:11 EST 2004


S Umadevi wrote:

> Should the code work on the fact that the ASCII values of characters?
>  
>
I think it is the definition of the range in Regex. If you test it with 
perl , this had the same behaviour :

> Using this mechanism of range for ASCII characters will it be 
> possibleto work with any other langugage? (should any other language be
> considered  or is it ok to work with English only?)
>
>  
>
Since Regex are implemented in many other programming language , I think 
mono's regex should have the same behaviour of other language ( like 
perl, or .NET ).

This little perl script show that perl match is based on ascii values :

#!/bin/perl

print "[ matches\n" if "[" =~ /[A-a]/i; print "_ matches\n" if "[" =~ 
/[A-a]/i; print "e matches\n" if "e" =~ /[A-a]/i;

#This print :

#[ matches
#_ matches
#e matches

Francois

>
>  
>





More information about the Mono-devel-list mailing list