[Mono-devel-list] ILBased Regex Engine

Francois Beauchemin beauche at softhome.net
Thu Jan 15 23:27:34 EST 2004


>I do not believe that you have to be able to save Regexs to disk.  These
>regexes are generated in memory and executed in memory.
>  
>
Sorry Miguel but it is possible, maybe you misunderstood me.. 
System.Text.RegularExpression.Regex as a methode called Compile to 
assembly ( not implemented yet in Mono , we will do it ) which can save 
the compiled regex into an assembly in memory. Then you can save it to 
disk with System.Reflection classes . I dont have the code but Eric had 
done a small test program which produce an DLL containing an compiled 
regex when runned on .NET.

The regex in the dll is a class which extend 
System.Text.RegularExpression.Regex with a default constructor so the 
class represent always the same regex and you can save on compile time ( 
I hope ! )

We eventually try to implement CompileToAssembly.

Francois




More information about the Mono-devel-list mailing list