Re: Regular expressions inside C# by Romain
Romain
Thu Jan 08 03:03:01 CST 2004
I have no idea of what to do that, but 2 things are sure :
- your sample is not a regular expression but a logic expression
- You have to replace all the "1" by "true" and "0" by "false" before be
able to evaluate the expression.
hopes that will help
ROM
"bonda101" <anonymous@discussions.microsoft.com> a écrit dans le message de
news: 099701c3d5ac$7dcacdc0$a101280a@phx.gbl...
> I am trying to find how to evaluate a regular expression
> (with 1's and 0') in a string form inside a source file
> (*.cs in a .NET FW1.1 environment)
>
> For eg:- result = " 1 && 0 || ( ! 1 || 1) " , where
> result is a Boolean variable;
>
> Appreciate any thoughts or help solving this.
>